diff options
author | Ulrich Drepper <drepper@redhat.com> | 2010-08-11 07:25:02 -0700 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2010-08-11 07:25:02 -0700 |
commit | c3e2f19bb995a0281f4cc56ad81bd67a5404dde6 (patch) | |
tree | 5bdbd8e1cb8119cd07cb48c60ef4f383c6b2d875 /nss/nss_files | |
parent | f15ce4d8dc139523fe0c273580b604b2453acba6 (diff) | |
download | glibc-c3e2f19bb995a0281f4cc56ad81bd67a5404dde6.tar glibc-c3e2f19bb995a0281f4cc56ad81bd67a5404dde6.tar.gz glibc-c3e2f19bb995a0281f4cc56ad81bd67a5404dde6.tar.bz2 glibc-c3e2f19bb995a0281f4cc56ad81bd67a5404dde6.zip |
Add self-contained test for NSS.
While at it fix interaction between __nss_configure_lookup and nscd.
Otherwise the test fails if nscd is runnung.
Diffstat (limited to 'nss/nss_files')
-rw-r--r-- | nss/nss_files/files-parse.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nss/nss_files/files-parse.c b/nss/nss_files/files-parse.c index 3603762f8e..66604bf94e 100644 --- a/nss/nss_files/files-parse.c +++ b/nss/nss_files/files-parse.c @@ -1,5 +1,5 @@ /* Common code for file-based database parsers in nss_files module. - Copyright (C) 1996-2000, 2003, 2004, 2009 Free Software Foundation, Inc. + Copyright (C) 1996-2000,2003,2004,2009,2010 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -29,7 +29,7 @@ DATABASE -- string of the database file's name ("hosts", "passwd"). ENTDATA -- if defined, `struct ENTDATA' is used by the parser to store - things pointed to by the resultant `struct STRUCTURE'. + things pointed to by the resultant `struct STRUCTURE'. NEED_H_ERRNO - defined iff an arg `int *herrnop' is used. @@ -229,7 +229,7 @@ strtou32 (const char *nptr, char **endptr, int base) char **list = parse_list (&line, buf_start, buf_end, '\0', errnop); \ if (list) \ result->TRAILING_LIST_MEMBER = list; \ - else \ + else \ return -1; /* -1 indicates we ran out of space. */ \ } |