aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/nscd
Commit message (Collapse)AuthorAgeFilesLines
* Remove residual blank line at start of MakefileWarner Losh2024-07-152-2/+0
| | | | | | | This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
* usr.sbin: Remove repeated wordsElyes Haouas2024-04-113-3/+3
| | | | | | Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/887
* usr.sbin: Automated cleanup of cdefs and other formattingWarner Losh2023-11-278-8/+0
| | | | | | | | | | | | | | | | Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row. Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/ Sponsored by: Netflix
* Remove $FreeBSD$: two-line nroff patternWarner Losh2023-08-162-4/+0
| | | | Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-164-4/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-1617-34/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* Remove $FreeBSD$: two-line .h patternWarner Losh2023-08-1617-34/+0
| | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
* Mark usage function as __dead2 in programs where it does not returnAlfonso Gregory2023-07-071-1/+1
| | | | | | | | In most cases, usage does not return, so mark them as __dead2. For the cases where they do return, they have not been marked __dead2. Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/735
* nscd: Remove set but unused variables.John Baldwin2023-06-203-9/+3
| | | | Reported by: GCC
* Update/fix Makefile.depend for userlandSimon J. Gerraty2023-04-191-1/+0
|
* nscd: does not warn about invalid values what parsing config fileAllan Jude2020-07-111-3/+36
| | | | | | | | | | | | | | PR: 202135 Submitted by: amutu@amutu.com Reported By: Trond.Endrestol@ximalas.info Reviewed by: markj, freqlabs MFC after: 4 weeks Sponsored by: Klara Inc. Event: July 2020 Bugathon Differential Revision: https://reviews.freebsd.org/D25627 Notes: svn path=/head/; revision=363109
* Workaround for nscd(8) failure with large entries.Edward Tomasz Napierala2019-01-171-0/+7
| | | | | | | | | | | | 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 Notes: svn path=/head/; revision=343121
* Style cleanup.Dag-Erling Smørgrav2018-11-272-39/+35
| | | | Notes: svn path=/head/; revision=341009
* Unbreak nscd(8). Without this change the CMSG gets truncated.Edward Tomasz Napierala2018-11-012-8/+9
| | | | | | | | | | Reviewed by: des MFC after: 2 weeks Sponsored by: Chalmers University of Technology Differential Revision: https://reviews.freebsd.org/D17452 Notes: svn path=/head/; revision=340015
* Make "nscd -t" work.Edward Tomasz Napierala2018-10-302-3/+2
| | | | | | | | | | Reviewed by: des@ MFC after: 2 weeks Sponsored by: Chalmers University of Technology Differential Revision: https://reviews.freebsd.org/D17563 Notes: svn path=/head/; revision=339919
* Remove BUGS section from nscd.conf(5) man page. This was missed in r339194.Edward Tomasz Napierala2018-10-061-4/+1
| | | | | | | | | Approved by: re (rgrimes) MFC after: 2 weeks Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=339214
* Remove the BUGS section of nscd(8) man page. According to bushman@'sEdward Tomasz Napierala2018-10-051-4/+1
| | | | | | | | | | | | reponse quoted in PR, he no longer maintains it. PR: 210590 Approved by: re (kib) MFC after: 2 weeks Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=339194
* Move nscd.conf from etc/ to usr.sbin/nscd/Brad Davis2018-07-282-0/+13
| | | | | | | | Approved by: will (mentor) Differential Revision: https://reviews.freebsd.org/D16490 Notes: svn path=/head/; revision=336850
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Fix up two assertions following malloc(). vangyzen@ notified me ofCy Schubert2017-05-201-2/+2
| | | | | | | | | | the second one. The first one is fixed as well. Reported by: vangyzen@ MFC after: 1 week Notes: svn path=/head/; revision=318588
* Fix non-recoverable name resolution failures due to negative cacheCy Schubert2017-05-201-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | entries never expiring. This patch honours the negative cache timeout. To test/experience the failure do the following: 1. Edit /etc/ncd.conf to adjust the cache timeouts as follows: positive-time-to-live hosts 30 negative-time-to-live hosts 1 2. Ensure that nsswitch.conf hosts line contains something like: hosts: files cache dns Note that cache must be specified before dns. 3. Start nscd. 4. Run the following command: while true; do nc -z -w 3 www.google.com 80; sleep 5; done 5. While running the command, remove or comment out all nameserver statements in /etc/resolv.conf. After a short while you will notice non-recoverable name rsolution failures. 6. Uncomment or replace all nameserver statements back into /etc/resolv.conf. Take note that name resolution never recovers. To recover nscd must be restarted. This patch fixes this. PR: 207804 Submitted by: Jov <amutu@amutu.com> MFC after: 1 week Notes: svn path=/head/; revision=318578
* nscd(8): let calloc(3) do the multiplying.Pedro F. Giffuni2017-03-134-16/+14
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=315213
* Revert crap accidentally committedBaptiste Daroussin2017-01-282-2/+4
| | | | Notes: svn path=/head/; revision=312927
* Revert r312923 a better approach will be taken laterBaptiste Daroussin2017-01-282-4/+2
| | | | Notes: svn path=/head/; revision=312926
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+21
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-271-2/+2
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Merge from head@274682Simon J. Gerraty2014-11-191-2/+2
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=274683
| * \ Merge head from 7/28Simon J. Gerraty2014-08-192-5/+4
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=270164
| * | | Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | | Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * | | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | Sync from headSimon J. Gerraty2012-11-046-0/+87
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242545
| * | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | | Convert usr.sbin to LIBADDBaptiste Daroussin2014-11-251-2/+2
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275054
* | | | Properly set the timeout in a query_state. The global query_timeoutJohn Baldwin2014-10-061-2/+2
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Submitted by: David Shane Holden <dpejesh@yahoo.com> MFC after: 1 week Notes: svn path=/head/; revision=272668
* | | use .Mt to mark up email addresses consistently (part2)Baptiste Daroussin2014-06-202-5/+4
| |/ |/| | | | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de> Notes: svn path=/head/; revision=267668
* | Remove end of line whitespace.Joel Dahl2012-07-041-5/+5
| | | | | | | | Notes: svn path=/head/; revision=238095
* | Add the possibility to specify a threshold for the number of negative cacheStefan Eßer2012-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. Notes: svn path=/head/; revision=238094
* Spelling fixes for usr.sbin/Ulrich Spörlein2011-12-301-1/+1
| | | | Notes: svn path=/head/; revision=228990
* mdoc: consistently spell our email addresses <foo@FreeBSD.org>Ulrich Spörlein2010-05-192-4/+4
| | | | | | | Reviewed by: ru Notes: svn path=/head/; revision=208291
* The default hash table size is 257 not 255. Reword the rest of the lineGavin Atkinson2010-01-031-1/+1
| | | | | | | | | | | slightly while here. PR: bin/121671 Submitted by: Artis Caune artis.caune gmail.com Approved by: ed (mentor) Notes: svn path=/head/; revision=201441
* Remove "extern" from function prototypes, and fix some (but not all)Dag-Erling Smørgrav2009-06-1315-196/+154
| | | | | | | | | style(9) violations. MFC after: 1 week Notes: svn path=/head/; revision=194112
* Wrap some macros that needed wrapping.Dag-Erling Smørgrav2009-06-131-8/+14
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=194109
* Remove casts from {c,m,re}alloc() and simplify sizeof().Dag-Erling Smørgrav2009-06-1313-87/+87
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=194104
* nscd builds cleanly at WARNS level 3.Dag-Erling Smørgrav2009-06-131-2/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=194098
* Explain to the compiler why the aliasing we're doing is OK.Dag-Erling Smørgrav2009-06-137-38/+33
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=194097
* Fix a large number of signed - unsigned comparison warnings.Dag-Erling Smørgrav2009-06-136-34/+43
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=194096
* Change hashtable_index_t to unsigned.Dag-Erling Smørgrav2009-06-132-5/+3
| | | | | | | | | Generate prototypes for our hash table. MFC after: 1 week Notes: svn path=/head/; revision=194095