Fix getent to call endspent rather than endpwent for shadow database.
This commit is contained in:
parent
da1304bcc8
commit
d34c915826
|
@ -1,3 +1,7 @@
|
||||||
|
2013-04-22 Jan-Benedict Glaw <jbglaw@getslash.de>
|
||||||
|
|
||||||
|
* nss/getent.c (shadow_keys): Call endspent, not endpwent.
|
||||||
|
|
||||||
2013-04-22 Siddhesh Poyarekar <siddhesh@redhat.com>
|
2013-04-22 Siddhesh Poyarekar <siddhesh@redhat.com>
|
||||||
|
|
||||||
* sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
|
* sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
|
||||||
|
|
|
@ -841,7 +841,7 @@ shadow_keys (int number, char *key[])
|
||||||
setspent ();
|
setspent ();
|
||||||
while ((sp = getspent ()) != NULL)
|
while ((sp = getspent ()) != NULL)
|
||||||
print_shadow (sp);
|
print_shadow (sp);
|
||||||
endpwent ();
|
endspent ();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue