Edward Tomasz Napierala
50d503b781
Workaround for nscd(8) failure with large entries.
...
It fixes a case where eg a 2KB group entry would take several seconds
to complete with cache enabled in nsswitch.conf.
MFC after: 2 weeks
Sponsored by: Chalmers University of Technology
Differential Revision: https://reviews.freebsd.org/D18392
2019-01-17 20:01:06 +00:00
Pedro F. Giffuni
87959e27fd
nscd(8): let calloc(3) do the multiplying.
...
MFC after: 1 week
2017-03-13 20:34:53 +00:00
Baptiste Daroussin
b4b4b5304b
Revert crap accidentally committed
2017-01-28 16:31:23 +00:00
Baptiste Daroussin
814aaaa7da
Revert r312923 a better approach will be taken later
2017-01-28 16:30:14 +00:00
Dag-Erling Smørgrav
8eeaaffaac
Remove casts from {c,m,re}alloc() and simplify sizeof().
...
MFC after: 1 week
2009-06-13 13:07:56 +00:00
Dag-Erling Smørgrav
27f2bc9e1b
Explain to the compiler why the aliasing we're doing is OK.
...
MFC after: 1 week
2009-06-13 01:22:56 +00:00
Dag-Erling Smørgrav
51d6ddb5d1
Fix a large number of signed - unsigned comparison warnings.
...
MFC after: 1 week
2009-06-13 00:56:17 +00:00
Dag-Erling Smørgrav
28f805cece
#include cleanup
...
MFC after: 1 week
2009-06-13 00:06:52 +00:00
Dag-Erling Smørgrav
0309c35e84
_nss_cache_cycle_prevention_function doesn't actually need to be a function,
...
it just needs to have external linkage.
MFC after: 1 week
2009-06-12 23:27:31 +00:00
Xin LI
ecce338eb4
Since we are going to strlen() on the string, it is supposed to be
...
NUL-terminated, so use strlcpy() instead of strncpy() here.
2008-10-23 00:27:35 +00:00
Xin LI
4f7df5c284
Reduce code duplication: use calloc instead of allocing and memset
...
afterward.
Approved by: bushman
2008-10-12 00:44:27 +00:00
Michael Bushkov
2c45f1b564
Removing startup banner.
2008-10-10 22:40:05 +00:00
Michael Bushkov
db1bdf2b02
- Renaming repocopied cached to nscd
...
Approved by: re (kensmith), brooks (mentor)
2007-08-09 13:06:12 +00:00
Ruslan Ermilov
0708945a3c
Fix usage().
2006-09-30 18:11:59 +00:00
Hajimu UMEMOTO
06a99fe36f
- Extend the nsswitch to support Services, Protocols and Rpc
...
databases.
- Make nsswitch support caching.
Submitted by: Michael Bushkov <bushman__at__rsu.ru>
Sponsored by: Google Summer of Code 2005
2006-04-28 12:03:38 +00:00