]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix getent to call endspent rather than endpwent for shadow database.
authorJan-Benedict Glaw <jbglaw@getslash.de>
Mon, 22 Apr 2013 17:44:31 +0000 (10:44 -0700)
committerRoland McGrath <roland@hack.frob.com>
Mon, 22 Apr 2013 17:44:31 +0000 (10:44 -0700)
ChangeLog
nss/getent.c

index fffe816c046eda704c767a5b437325daaf866936..e16ef0a4e946fab88da4ae986c67213a9c0bdff5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
index aa4eaf9e0da54ba9541b7fdcb7d42e6589d95cac..8a3c864501ab2036b66e382958d8d6b9c2dcfd5b 100644 (file)
@@ -841,7 +841,7 @@ shadow_keys (int number, char *key[])
       setspent ();
       while ((sp = getspent ()) != NULL)
        print_shadow (sp);
-      endpwent ();
+      endspent ();
       return result;
     }