summaryrefslogtreecommitdiffstats
path: root/usr.sbin/nscd
Commit message (Collapse)AuthorAgeFilesLines
* MFC 272668:jhb2014-10-171-2/+2
| | | | | | | | | Properly set the timeout in a query_state. The global query_timeout configuration value is an integer count of seconds, it is not a timeval. Using memcpy() to copy a timeval from it put garbage into the tv_usec field. PR: 194025
* Remove end of line whitespace.joel2012-07-041-5/+5
|
* Add the possibility to specify a threshold for the number of negative cachese2012-07-046-0/+87
| | | | | | | | | | | | | | | | | | | | | | | results required to have the cache return lookup failure. A new configuration parameter is introduced, which must be set to a value greater than 1 to activate this feature. The default behavior is unchanged. The purpose of this change is to allow probes for the existence of an entry (which are expected to fail), before that entry is added to one of the queried databases, without the cache returning the stale information from the probe query until that cache entry expires. If, for example, a new user account is created after checking that the new account name is available, the negative cache entry would prevent immediate access to the account. For that example, the new configuration option negative-confidence-threshold passwd 2 will require a second negative query result to consider the negative cache entry for a passwd entry valid, but if the user account has been created between the queries, then the positive query result from the second query will be cached and returned.
* Spelling fixes for usr.sbin/uqs2011-12-301-1/+1
|
* mdoc: consistently spell our email addresses <foo@FreeBSD.org>uqs2010-05-192-4/+4
| | | | Reviewed by: ru
* The default hash table size is 257 not 255. Reword the rest of the linegavin2010-01-031-1/+1
| | | | | | | | slightly while here. PR: bin/121671 Submitted by: Artis Caune artis.caune gmail.com Approved by: ed (mentor)
* Remove "extern" from function prototypes, and fix some (but not all)des2009-06-1315-196/+154
| | | | | | style(9) violations. MFC after: 1 week
* Wrap some macros that needed wrapping.des2009-06-131-8/+14
| | | | MFC after: 1 week
* Remove casts from {c,m,re}alloc() and simplify sizeof().des2009-06-1313-87/+87
| | | | MFC after: 1 week
* nscd builds cleanly at WARNS level 3.des2009-06-131-2/+1
| | | | MFC after: 1 week
* Explain to the compiler why the aliasing we're doing is OK.des2009-06-137-38/+33
| | | | MFC after: 1 week
* Fix a large number of signed - unsigned comparison warnings.des2009-06-136-34/+43
| | | | MFC after: 1 week
* Change hashtable_index_t to unsigned.des2009-06-132-5/+3
| | | | | | Generate prototypes for our hash table. MFC after: 1 week
* #include the right header so we get prototypes for our own functions.des2009-06-131-1/+1
| | | | MFC after: 1 week
* Further #include cleanup.des2009-06-1310-12/+25
| | | | MFC after: 1 week
* Make the debugging macros expand to (void)0 instead of simply nothingdes2009-06-132-36/+36
| | | | | | | when debugging is turned off. Rename debugging functions due to namespace violation. MFC after: 1 week
* #include cleanupdes2009-06-1313-22/+28
| | | | MFC after: 1 week
* Provide correct prototypes for functions with no arguments.des2009-06-1212-34/+34
| | | | MFC after: 1 week
* _nss_cache_cycle_prevention_function doesn't actually need to be a function,des2009-06-121-10/+10
| | | | | | it just needs to have external linkage. MFC after: 1 week
* o Correct a database name: "group" not "groups".maxim2008-12-221-2/+2
| | | | | | PR: docs/129853 Submitted by: Denis Barov MFC after: 1 week
* Slightly adjust code logic: we allocate a "size"ed length of memory, notdelphij2008-10-231-5/+5
| | | | size+1. Use strlcpy() to avoid using - 1 as length for strncpy().
* Use strlcpy() before strlen() instead of strncpy().delphij2008-10-231-1/+1
|
* Since we are going to strlen() on the string, it is supposed to bedelphij2008-10-231-1/+1
| | | | NUL-terminated, so use strlcpy() instead of strncpy() here.
* Replace malloc() + memset() with calloc. This corrects a misuse ofdelphij2008-10-233-20/+10
| | | | memset() as a side effect.
* Reduce code duplication: use calloc instead of allocing and memsetdelphij2008-10-1210-92/+38
| | | | | | afterward. Approved by: bushman
* Removing startup banner.bushman2008-10-101-12/+0
|
* These are the things that the tinderbox has problems with because itjb2007-11-201-0/+1
| | | | | | | | doesn't use the default CFLAGS which contain -fno-strict-aliasing. Until the code is cleaned up, just add -fno-strict-aliasing to the CFLAGS of these for the tinderboxes' sake, allowing the rest of the tree to have -Werror enabled again.
* Remove file which was accidently repo-copied to the wrong destinationsimon2007-10-101-34/+0
| | | | | | file-name. The file will be nuked entirely from the repository later. Approved by: re (kensmith)
* - Renaming repocopied cached to nscdbushman2007-08-0922-108/+108
| | | | Approved by: re (kensmith), brooks (mentor)
* - When building world WITHOUT_LIBPTHREAD, link libthr to libpthread.ru2006-11-261-11/+8
| | | | | - Don't build ngctl(8) and cached(8) if threading libs aren't built. - Fix various issues in a cached(8) makefile.
* Revise markup.ru2006-09-302-65/+109
|
* Fix usage().ru2006-09-301-1/+2
|
* If perform-actual-lookups is enabled, getservbyname() matches an entryume2006-05-051-12/+10
| | | | | | even when proto is not valid. Submitted by: Michael Bushkov <bushman__at__rsu.ru>
* Fix alignment problem on AMD64.ume2006-05-021-6/+8
| | | | | | Reported by: Pascal Hofstee <caelian__at__gmail.com> Submitted by: Michael Bushkov <bushman__at__rsu.ru> Tested by: Pascal Hofstee <caelian__at__gmail.com>
* o Sort .Xrs.maxim2006-04-301-2/+2
|
* o Reformat FILES section.maxim2006-04-301-1/+4
|
* o Add missed commas.maxim2006-04-301-2/+2
|
* o Silence mdoc(7) warnings: remove an empty line, add missed .El macro.maxim2006-04-301-30/+37
| | | | New sentence - new line.
* Specify default values for positive-policy and negative-policy .matteo2006-04-301-3/+3
|
* Typo.ceri2006-04-301-1/+1
|
* Reword a sentence modified in my previous commit. This new one is probablytrhodes2006-04-301-1/+2
| | | | | | better. Hinted by: ceri
* Follow FreeBSD mdoc(7) conventions:trhodes2006-04-291-35/+43
| | | | | | | | | | | - Remove hard sentence breaks; - Avoid using double negatives or "sexist" language; - Expand contractions; - Remove a blank line; - Some grammar changes. Usually we do not "hard code" requests to submit bugs to the author, but I will leave this go for now.
* - Extend the nsswitch to support Services, Protocols and Rpcume2006-04-2839-0/+10134
databases. - Make nsswitch support caching. Submitted by: Michael Bushkov <bushman__at__rsu.ru> Sponsored by: Google Summer of Code 2005
OpenPOWER on IntegriCloud