aboutsummaryrefslogtreecommitdiff
path: root/nss
AgeCommit message (Collapse)AuthorFilesLines
2013-04-23Remove non-standard initialisation of flexible array memberAndreas Schwab1-1/+8
This avoids GCC bug 28865.
2013-04-22Fix getent to call endspent rather than endpwent for shadow database.Jan-Benedict Glaw1-1/+1
2013-03-18BZ#14812: Add missing translation marker on some argp option argument names ↵Roland McGrath1-1/+1
in utilities.
2013-02-18unify xmalloc prototypes & friendsMike Frysinger1-4/+1
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-07Remove lots of inline keywords.Roland McGrath1-5/+5
2013-01-02Update copyright notices with scripts/update-copyrights.Joseph Myers54-56/+54
2013-01-01Update copyright years.David S. Miller2-4/+4
* 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.
2012-11-28Fix hashtable size calculation when database has exactly one recordSiddhesh Poyarekar1-3/+6
The hash function needs a hashtable of at least size 3 or greater.
2012-11-19Return EAI_SYSTEM if we're out of file descriptorsSiddhesh Poyarekar1-1/+6
Resolves BZ #14719.
2012-11-09Support --with-pkgversion and --with-bugurl.Joseph Myers2-6/+9
2012-10-30Suppress incorrect link warnings for NSS symbolsChris Metcalf5-6/+14
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-09-28Quiet make warning under --disable-shared.Roland McGrath1-0/+2
2012-09-28Avoid more warnings in nsswitch.cRoland McGrath1-0/+4
2012-09-28Avoid unused static function warning in nsswitch.c.Roland McGrath1-0/+2
2012-08-22BZ#13696: Add --disable-nscd configure option.Roland McGrath3-4/+16
2012-08-04getXXbyYY_r.c: Fix comment typo: s/FUNCTION_NAME/FUNCTION2_NAME/Jim Meyering1-1/+1
2012-07-31Conditionalize use of PTR_MANGLE.Roland McGrath1-2/+10
2012-07-30Fix lots of bitrot for stub configurations.Roland McGrath5-2/+11
2012-07-12Avoid duplicate DNS requests if answer is longer than a implementationJeroen van Bemmel1-2/+5
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-05-22For [BZ#14122], plug memory leaks in nsswitch.c.Paul Pluzhnikov1-24/+70
2012-05-10Hurd: mmap deficienciesThomas Schwinge1-0/+4
2012-05-10Hurd: Add missing includesThomas Schwinge2-1/+5
2012-04-062012-04-06 Paul Pluzhnikov <ppluzhnikov@google.com>Paul Pluzhnikov3-9/+26
[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-06Add missing include fileAndreas Jaeger1-1/+2
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-03-232012-03-23 Jeff Law <law@redhat.com>Jeff Law1-2/+2
* nss/getnssent.c (__nss_getent): Fix typo.
2012-03-232012-03-23 Daniel Jacobowitz <dmj@google.com>Paul Pluzhnikov1-12/+4
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-13Add missing string.h include for strcpy calls.David S. Miller1-2/+2
* nss/nss_db/db-init.c: Include string.h
2012-03-07Remove distribute variable from MakefilesUlrich Drepper1-8/+1
2012-03-06Add missing gshadow handling in __nss_configure_lookupUlrich Drepper1-1/+2
2012-02-09Replace FSF snail mail address with URLs.Paul Eggert55-165/+110
2012-01-08Optimize xmalloc, xcalloc, xrealloc, and xstrdupUlrich Drepper1-2/+4
Add alloc_size attribute and apply consistently the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
2012-01-07Remove pre-ISO C supportUlrich Drepper1-3/+3
No more __const.
2012-01-01Also update new programsUlrich Drepper1-2/+2
2012-01-01Update copyright yearUlrich Drepper1-2/+2
2011-11-15Clean up internal fopen usesUlrich Drepper6-8/+8
No need to ever not use c and e.
2011-11-11Fix db makefile rule for group.dbAndreas Schwab1-1/+1
2011-11-07Fix buffer allocation in files initgroups handlerAndreas Schwab1-1/+1
2011-11-03Don't fail in makedb if SELinux is disabledAndreas Schwab1-1/+1
2011-10-31Unify getent output for initgroups databaseUlrich Drepper1-0/+6
Requests for other fail if iteration is not supported and no parameters are given. Do this for initgroups as well.
2011-10-08Fix some nit warnings.Roland McGrath1-1/+0
2011-10-07Implement caching of nscdUlrich Drepper5-6/+22
2011-10-06Stop crash in OOM handling in NSSUlrich Drepper1-5/+3
2011-10-06More fallout from OOM in NSSJiri Olsa1-1/+1
2011-10-06Handle OOM in NSSJiri Olsa1-1/+4
2011-09-28Optimize libnss_files initializationUlrich Drepper1-35/+18
2011-09-27Correctly reparse group line after enlarging the bufferAndreas Schwab1-4/+8
2011-08-20More optimizations of nss_filesUlrich Drepper2-7/+5
2011-08-20Minor optimizatin in alias lookup in files NSS moduleUlrich Drepper1-3/+3
2011-08-17Avoid executable stack in makedbAndreas Schwab1-5/+7
2011-07-11Generalize framework to register monitoring of files in nscdUlrich Drepper6-48/+259
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.