From d34c915826734cf20b189e925aac9b9f176bcd53 Mon Sep 17 00:00:00 2001 From: Jan-Benedict Glaw Date: Mon, 22 Apr 2013 10:44:31 -0700 Subject: Fix getent to call endspent rather than endpwent for shadow database. --- nss/getent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nss/getent.c') diff --git a/nss/getent.c b/nss/getent.c index aa4eaf9e0d..8a3c864501 100644 --- a/nss/getent.c +++ b/nss/getent.c @@ -841,7 +841,7 @@ shadow_keys (int number, char *key[]) setspent (); while ((sp = getspent ()) != NULL) print_shadow (sp); - endpwent (); + endspent (); return result; } -- cgit v1.2.3