Allan McRae
88726d48af
Update remaining copyright dates
...
Update copyright years that are not handled by scripts/update-copyright.
2014-01-01 22:02:55 +10:00
Allan McRae
d4697bc93d
Update copyright notices with scripts/update-copyrights
2014-01-01 22:00:23 +10:00
Allan McRae
73616a7427
Add systemd unit file for nscd
...
Provide an example systemd unit and tmpfile for running nscd.
2013-12-16 11:22:01 +10:00
Andreas Schwab
8ec3f656d6
Fix off-by-one in nscd getservbyport call
2013-11-11 12:26:32 +01:00
Mike Frysinger
cb8a6dbd17
rename configure.in to configure.ac
...
Autoconf has been deprecating configure.in for quite a long time.
Rename all our configure.in and preconfigure.in files to .ac.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-10-30 17:32:08 +10:00
Andreas Schwab
b2179107f3
Properly cache the result from looking up the nss database config
2013-09-30 10:29:13 +02:00
Allan McRae
83e43bf0b7
Fix nesting of ifdefs in netgroupcache.c
...
Fixes unclosed '{' if HAVE_SENDFILE is defined (BZ #15895 ).
2013-09-09 20:25:01 +10:00
Siddhesh Poyarekar
3a30923983
Use __glibc_unlikely instead of __builtin_expect (..., 0)
2013-08-28 09:44:19 +05:30
Siddhesh Poyarekar
595aba70a4
Initialize res_hconf in nscd
...
Fixes BZ #15890 .
2013-08-26 15:42:29 +05:30
Siddhesh Poyarekar
e0a69f5cb8
Fix indentation in aicache.c
2013-08-26 10:53:02 +05:30
Siddhesh Poyarekar
a31ee4b3a5
Fix typo in comment
2013-06-24 18:07:37 +05:30
Andreas Schwab
50fd745b4d
Fix handling of netgroup cache in nscd
2013-06-11 11:29:50 +02:00
Ryan S. Arnold
e054f49430
Add #include <stdint.h> for uint[32|64]_t usage (except installed headers).
2013-05-16 11:32:54 -05:00
Andreas Schwab
306dfba9e1
Properly check for short writes when sending the response in nscd
2013-04-15 10:33:52 +02:00
Andreas Schwab
0582f6b3d6
nscd: don't fork twice
2013-04-15 09:49:55 +02:00
Mike Frysinger
6ff444c418
unify xmalloc prototypes & friends
...
These prototypes are duplicated in many places. Add a dedicated
header for holding prototypes for program-specific functions to
avoid that.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-02-18 17:16:05 -05:00
Carlos O'Donell
471514d39d
Refactor code out of nscd's two main poll loops.
...
We refactor the inotify file checking code and the
database clearing code out of the main_loop_poll and
mail_loop_epoll functions. We document some the related
functions with appropriate comments.
2013-02-08 12:56:22 -05:00
Roland McGrath
f1d70dad53
Remove lots of inline keywords.
2013-02-07 14:44:18 -08:00
Andreas Schwab
33c0a3afc7
Revert "Properly check for short writes when sending the response in nscd"
...
This reverts commit dd31ac7a8e
.
2013-01-10 10:44:04 +01:00
Andreas Schwab
67881f5e92
Revert "* nscd/nscd.h: Move persistent storage back to /var/run/nscd"
...
This reverts commit 70d3e06ed0
.
2013-01-10 10:44:04 +01:00
Andreas Schwab
ee32fdd79a
Revert "nscd: don't fork twice"
...
This reverts commit 7e9b080575
.
2013-01-10 10:44:04 +01:00
Andreas Schwab
7e9b080575
nscd: don't fork twice
2013-01-10 09:59:59 +01:00
Thorsten Kukuk
70d3e06ed0
* nscd/nscd.h: Move persistent storage back to /var/run/nscd
2013-01-10 09:59:59 +01:00
Andreas Schwab
dd31ac7a8e
Properly check for short writes when sending the response in nscd
...
* nscd/grpcache.c (cache_addgr): Properly check for short write.
* nscd/initgrcache.c (addinitgroupsX): Likewise.
* nscd/pwdcache.c (cache_addpw): Likewise.
* nscd/servicescache.c (cache_addserv): Likewise. Don't write
more than recsize.
2013-01-10 09:59:58 +01:00
Joseph Myers
568035b787
Update copyright notices with scripts/update-copyrights.
2013-01-02 19:05:09 +00:00
David S. Miller
0549fbba96
Update copyright years.
...
* catgets/gencat.c: Update copyright year.
* csu/version.c: Likewise.
* debug/catchsegv.sh: Likewise.
* debug/pcprofiledump.c: Likewise.
* debug/xtrace.sh: Likewise.
* elf/ldconfig.c: Likewise.
* elf/ldd.bash.in: Likewise.
* elf/pldd.c: Likewise.
* elf/sotruss.ksh: Likewise.
* elf/sprof.c: Likewise.
* iconv/iconv_prog.c: Likewise.
* iconv/iconvconfig.c: Likewise.
* locale/programs/locale.c: Likewise.
* locale/programs/localedef.c: Likewise.
* login/programs/pt_chown.c: Likewise.
* malloc/memusage.sh: Likewise.
* malloc/memusagestat.c: Likewise.
* malloc/mtrace.pl: Likewise.
* nscd/nscd.c: Likewise.
* nss/getent.c: Likewise.
* nss/makedb.c: Likewise.
* posix/getconf.c: Likewise.
2013-01-01 00:11:43 -08:00
Jeff Law
2af1b32853
[BZ #13761 ]
...
* nscd/grpcache.c (cache_addgr): Rename alloca_used to
dataset_temporary. Track alloca usage into alloca_used.
If dataset is large allocate and release it via malloc/free.
2012-11-29 10:46:19 -07:00
Joseph Myers
8b748aed2a
Support --with-pkgversion and --with-bugurl.
2012-11-09 22:13:45 +00:00
Roland McGrath
6e6249d0b4
BZ#14743: Move clock_* symbols from librt to libc.
2012-10-24 14:50:46 -07:00
Dmitry V. Levin
fc997c6e55
nscd: fix compilation flags
...
Commit 61653dfb81
added support for
compilers predefining _FORTIFY_SOURCE by adding -U_FORTIFY_SOURCE to
CPPFLAGS for these compilers, but that change doesn't work quite well in
case of nscd: its Makefile sets _FORTIFY_SOURCE using CFLAGS instead of
CPPFLAGS and, thanks to compilation rules defined in Makerules, CPPFLAGS
are passed to compiler after CFLAGS, resulting to a build with
_FORTIFY_SOURCE turned off.
This change implements a more safe method of passing preprocessor and
compiler flags so that no nscd modules could be accidentally forgotten.
2012-10-02 19:22:57 +00:00
Roland McGrath
f04e213208
Fix shadow, gshadow, networks, protocols, rpc, aliases, and nscd routines for USE_NSCD case.
2012-08-22 16:06:53 -07:00
Roland McGrath
c53d909c80
Add --disable-build-nscd configure option.
2012-08-22 13:35:55 -07:00
Roland McGrath
3cc3ef96d6
BZ#13696: Add --disable-nscd configure option.
2012-08-22 13:31:12 -07:00
Joseph Myers
89b4b02f42
Remove pre-2.4.21 Linux kernel support.
2012-07-25 21:19:13 +00:00
Roland McGrath
6540185fb9
Fix formatting in last change.
2012-05-15 11:45:42 -07:00
Andreas Jaeger
509072a0f7
Avoid race in nscd
...
2012-05-15 Jeff Law <law@redhat.com>
Andreas Jaeger <aj@suse.de>
[BZ #13594 ]
* nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
out from...
* nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
* nscd/nscd-client.h: Add __nscd_acquire_maplock.
* nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
code changing __hst_map_handle.map.
2012-05-15 20:37:05 +02:00
Thomas Schwinge
37233df9d1
Hurd: #include <kernel-features.h>
2012-05-10 15:57:24 -07:00
Andreas Jaeger
edfe0dbebd
Cleanup nscd.c
...
2012-05-09 Andreas Jaeger <aj@suse.de>
* nscd/nscd.c (run_modes): Make named enum, reorder so that
default is first entry.
(run_mode): Set type.
(main): Remove informal message about syslog.
(options): Fix typo.
2012-05-09 21:34:47 +02:00
Andreas Jaeger
91d8d69ec6
Cleanup last patch for nscd/nscd.c
...
* nscd/nscd.c (run_mode): Use enum.
(main): Cleanup coding style issue.
2012-05-09 17:42:15 +02:00
Andreas Jaeger
bb90b80baa
Add --foreground option for nscd
...
For a better integration of nscd with systemd, we should run nscd not as
daemon but in the foreground. A new --foreground option should be added.
2012-05-09 Alexandre Oliva <aoliva@redhat.com>
Andreas Jaeger <aj@suse.de>
* nscd/nscd.c (go_background): Replaced with...
(run_mode): ... this.
(RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
(options): Add -F --foreground.
(main): Implement it.
(parse_opt): Parse it.
2012-05-09 16:54:38 +02:00
Paul Pluzhnikov
3ff4252677
2012-03-23 Daniel Jacobowitz <dmj@google.com>
...
Paul Pluzhnikov <ppluzhnikov@google.com>
[BZ #6528 ]
* grp/Makefile (otherlibs): Don't set it.
* inet/Makefile (otherlibs): Likewise.
* login/Makefile (otherlibs): Likewise.
* nscd/Makefile (otherlibs): Likewise.
* posix/Makefile (otherlibs): Likewise.
* pwd/Makefile (otherlibs): Likewise.
* rt/Makefile (otherlibs): Likewise.
* sunrpc/Makefile (otherlibs): Likewise.
* nss/Makefile (otherlibs): Likewise.
Add libnss_files to routines and static-only-routines.
($(objpfx)getent): Remove rule.
* resolv/Makefile: Add libnss_dns and libresolv to routines and
static-only-routines.
2012-03-23 09:47:03 -07:00
H.J. Lu
eb96ffb07d
Move stdio-common/_itoa.h to sysdeps/generic
2012-03-20 16:00:23 -07:00
Ulrich Drepper
a4300c7a4d
Remove distribute variable from Makefiles
2012-03-07 05:17:13 -05:00
Paul Eggert
59ba27a63a
Replace FSF snail mail address with URLs.
2012-02-09 23:18:22 +00:00
Ulrich Drepper
3e1aa84e7f
Do not cache negative results in nscd if these are transient
2012-01-20 22:39:54 -05:00
Ulrich Drepper
ec09c1c410
Optimize xmalloc, xcalloc, xrealloc, and xstrdup
...
Add alloc_size attribute and apply consistently the malloc attribute
to xmalloc, xcalloc, xrealloc, and xstrdup.
2012-01-08 21:19:43 -05:00
Ulrich Drepper
81fb02b046
Update copyright year
2012-01-01 05:50:05 -05:00
Ulrich Drepper
9bea34736f
Avoid warning in aicache.c
2011-12-02 21:05:19 -05:00
Andreas Schwab
a9ae54a136
Don't start AVC thread until credentials are installed
2011-11-03 14:41:38 +01:00
Andreas Schwab
45b96dd684
Properly set extra-objs in nscd makefile
2011-11-01 18:28:38 +01:00