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
Siddhesh Poyarekar
0817d63dd1
Fix hashtable size calculation when database has exactly one record
...
The hash function needs a hashtable of at least size 3 or greater.
2012-11-28 06:45:50 +05:30
Siddhesh Poyarekar
cfde9b463d
Return EAI_SYSTEM if we're out of file descriptors
...
Resolves BZ #14719 .
2012-11-19 13:02:48 +05:30
Joseph Myers
8b748aed2a
Support --with-pkgversion and --with-bugurl.
2012-11-09 22:13:45 +00:00
Chris Metcalf
017678433c
Suppress incorrect link warnings for NSS symbols
...
When glibc is built with --enable-static-nss, the warning that
using NSS symbols requires the nss shared objects to be present
is no longer true, as those symbols are built into libc. Suppress
the warning for those symbols by providing a new macro
(nss_interface_function) for the NSS functions that is defined as
static_link_warning in the normal case, and empty for static NSS.
2012-10-30 14:14:33 -04:00
Roland McGrath
6bacf05bfd
Quiet make warning under --disable-shared.
2012-09-28 14:33:40 -07:00
Roland McGrath
b1c608fe20
Avoid more warnings in nsswitch.c
2012-09-28 13:48:14 -07:00
Roland McGrath
d3b9fd9e8d
Avoid unused static function warning in nsswitch.c.
2012-09-28 13:23:00 -07:00
Roland McGrath
3cc3ef96d6
BZ#13696: Add --disable-nscd configure option.
2012-08-22 13:31:12 -07:00
Jim Meyering
c5f80821ab
getXXbyYY_r.c: Fix comment typo: s/FUNCTION_NAME/FUNCTION2_NAME/
2012-08-04 15:59:40 +02:00
Roland McGrath
40ce302d37
Conditionalize use of PTR_MANGLE.
2012-07-31 09:42:06 -07:00
Roland McGrath
bea9b19322
Fix lots of bitrot for stub configurations.
2012-07-30 16:34:33 -07:00
Jeroen van Bemmel
7b6e99be77
Avoid duplicate DNS requests if answer is longer than a implementation
...
limit
[BZ #14307 ]
* sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
the temporary buffer used to invoke __gethostbyname2_r,
__gethostbyaddr_r and gethostbyname4_r to make room for struct
host_data / struct gaih_addrtuple.
* resolv/nss_dns/dns-host.c (global scope): Move definition of
implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
header file nss/nsswitch.h.
* nss/nsswitch.h (global scope): Add definition of implementation
constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
resolv/nss_dns/dns-host.c).
2012-07-12 11:31:48 +05:30
Paul Pluzhnikov
d44638b0a7
For [BZ#14122], plug memory leaks in nsswitch.c.
2012-05-22 13:09:27 -07:00
Thomas Schwinge
8069478040
Hurd: mmap deficiencies
2012-05-10 15:57:26 -07:00
Thomas Schwinge
e468f8a3a7
Hurd: Add missing includes
2012-05-10 15:57:25 -07:00
Paul Pluzhnikov
62470f605e
2012-04-06 Paul Pluzhnikov <ppluzhnikov@google.com>
...
[BZ #13895 ]
* nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
extra indirection.
* nss/Makefile (tests-static, tests): Add tst-nss-static.
* nss/tst-nss-static.c: New.
2012-04-06 13:49:35 -07:00
Andreas Jaeger
2c040eff83
Add missing include file
...
Compiling on Linux/i586 I get these warnings:
nss_db/db-initgroups.c:60:3: warning: implicit declaration of function
'strlen' [-Wimplicit-function-declaration]
nss_db/db-initgroups.c:74:7: warning: implicit declaration of function
'strncmp' [-Wimplicit-function-declaration]
Fixed with inclusion of <string.h>
2012-04-06 21:09:36 +02:00
Jeff Law
6a9b9c02fa
2012-03-23 Jeff Law <law@redhat.com>
...
* nss/getnssent.c (__nss_getent): Fix typo.
2012-03-23 14:56:42 -06: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
David S. Miller
09a3453f63
Add missing string.h include for strcpy calls.
...
* nss/nss_db/db-init.c: Include string.h
2012-03-13 00:41:37 -07:00
Ulrich Drepper
a4300c7a4d
Remove distribute variable from Makefiles
2012-03-07 05:17:13 -05:00
Ulrich Drepper
a000466f5e
Add missing gshadow handling in __nss_configure_lookup
2012-03-06 21:55:18 -05:00
Paul Eggert
59ba27a63a
Replace FSF snail mail address with URLs.
2012-02-09 23:18:22 +00: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
a784e50247
Remove pre-ISO C support
...
No more __const.
2012-01-07 23:57:22 -05:00
Ulrich Drepper
a316c1f682
Also update new programs
2012-01-01 07:16:32 -05:00
Ulrich Drepper
81fb02b046
Update copyright year
2012-01-01 05:50:05 -05:00
Ulrich Drepper
312be3f9f5
Clean up internal fopen uses
...
No need to ever not use c and e.
2011-11-15 04:24:42 -05:00
Andreas Schwab
98591e5820
Fix db makefile rule for group.db
2011-11-11 14:44:21 +01:00
Andreas Schwab
ae1bc2fa1c
Fix buffer allocation in files initgroups handler
2011-11-07 11:49:51 +01:00
Andreas Schwab
3d7ba52b68
Don't fail in makedb if SELinux is disabled
2011-11-03 14:41:10 +01:00
Ulrich Drepper
f4ec483382
Unify getent output for initgroups database
...
Requests for other fail if iteration is not supported and no parameters
are given. Do this for initgroups as well.
2011-10-31 16:48:45 -04:00
Roland McGrath
c658d255e9
Fix some nit warnings.
2011-10-08 15:25:08 -07:00
Ulrich Drepper
684ae51599
Implement caching of nscd
2011-10-07 10:06:31 -04:00
Ulrich Drepper
054c0457fd
Stop crash in OOM handling in NSS
2011-10-06 03:18:20 -04:00
Jiri Olsa
64031225b2
More fallout from OOM in NSS
2011-10-06 03:14:21 -04:00
Jiri Olsa
0490345c9f
Handle OOM in NSS
2011-10-06 03:04:10 -04:00
Ulrich Drepper
6857791843
Optimize libnss_files initialization
2011-09-28 10:01:13 -04:00
Andreas Schwab
32c76b63be
Correctly reparse group line after enlarging the buffer
2011-09-27 09:55:28 +02:00
Ulrich Drepper
775a77e7e4
More optimizations of nss_files
2011-08-20 15:55:44 -04:00
Ulrich Drepper
89f447edba
Minor optimizatin in alias lookup in files NSS module
2011-08-20 15:25:16 -04:00
Andreas Schwab
8de79a248c
Avoid executable stack in makedb
2011-08-17 10:32:59 -04:00
Ulrich Drepper
319b9ad4bc
Generalize framework to register monitoring of files in nscd
...
nscd can clear caches when certain files change. The list of files
was hardcoded so far and worked for nss_files and nss_dns and those
modules which need no monitoring. nss_db, for instance, has its
own set of files to monitor. Now the NSS modules themselves can
request that certain files are monitored.
2011-07-11 14:50:24 -04:00
Marek Polacek
07f494a027
nss_db: Quash read implicit declaration warning
...
In the function `internal_setent' is used the function read, but the forward
declaration is missing. Thusly fixed.
2011-06-24 02:57:27 -04:00
Ulrich Drepper
51f9aa6a1e
Fix crash in unsuccessful uses of nss_db
2011-06-21 17:09:44 -04:00
Ulrich Drepper
77fb911743
Install db-Makefile
2011-06-15 21:26:56 -04:00
Ulrich Drepper
40c1b22cd7
Cleanup of db-XXX.c
2011-06-15 21:06:19 -04:00
Ulrich Drepper
9f2da732e7
Add initgroups lookups to nss_db
2011-06-15 21:06:19 -04:00
Ulrich Drepper
82e9a1f7df
Add initgroups lookup support to getent
2011-06-15 21:06:19 -04:00