History log of /freebsd-current/usr.sbin/nscd/query.c
Revision Date Author Comments
# ec8a394d 11-Apr-2024 Elyes Haouas <ehaouas@noos.fr>

usr.sbin: Remove repeated words

Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/887


# 4d65a7c6 24-Nov-2023 Warner Losh <imp@FreeBSD.org>

usr.sbin: Automated cleanup of cdefs and other formatting

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


# 1d386b48 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


# e86caa0b 27-Nov-2018 Dag-Erling Smørgrav <des@FreeBSD.org>

Style cleanup.


# 5ae9f698 01-Nov-2018 Edward Tomasz Napierala <trasz@FreeBSD.org>

Unbreak nscd(8). Without this change the CMSG gets truncated.

Reviewed by: des
MFC after: 2 weeks
Sponsored by: Chalmers University of Technology
Differential Revision: https://reviews.freebsd.org/D17452


# 12326285 20-May-2017 Cy Schubert <cy@FreeBSD.org>

Fix up two assertions following malloc(). vangyzen@ notified me of
the second one. The first one is fixed as well.

Reported by: vangyzen@
MFC after: 1 week


# 8af0c00b 20-May-2017 Cy Schubert <cy@FreeBSD.org>

Fix non-recoverable name resolution failures due to negative cache
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


# 23c7e79a 06-Oct-2014 John Baldwin <jhb@FreeBSD.org>

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
Submitted by: David Shane Holden <dpejesh@yahoo.com>
MFC after: 1 week


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# 8eeaaffa 13-Jun-2009 Dag-Erling Smørgrav <des@FreeBSD.org>

Remove casts from {c,m,re}alloc() and simplify sizeof().

MFC after: 1 week


# 27f2bc9e 12-Jun-2009 Dag-Erling Smørgrav <des@FreeBSD.org>

Explain to the compiler why the aliasing we're doing is OK.

MFC after: 1 week


# 51d6ddb5 12-Jun-2009 Dag-Erling Smørgrav <des@FreeBSD.org>

Fix a large number of signed - unsigned comparison warnings.

MFC after: 1 week


# 28f805ce 12-Jun-2009 Dag-Erling Smørgrav <des@FreeBSD.org>

#include cleanup

MFC after: 1 week


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# 4f7df5c2 11-Oct-2008 Xin LI <delphij@FreeBSD.org>

Reduce code duplication: use calloc instead of allocing and memset
afterward.

Approved by: bushman


# db1bdf2b 09-Aug-2007 Michael Bushkov <bushman@FreeBSD.org>

- Renaming repocopied cached to nscd

Approved by: re (kensmith), brooks (mentor)


# b947683c 02-May-2006 Hajimu UMEMOTO <ume@FreeBSD.org>

Fix alignment problem on AMD64.

Reported by: Pascal Hofstee <caelian__at__gmail.com>
Submitted by: Michael Bushkov <bushman__at__rsu.ru>
Tested by: Pascal Hofstee <caelian__at__gmail.com>


# 06a99fe3 27-Apr-2006 Hajimu UMEMOTO <ume@FreeBSD.org>

- 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