Call `endpwent'. If we are using a BSD-kind of system we should not leave the shadow password database open.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@823 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1996-10-02 18:42:12 +00:00
parent 4e53274ff0
commit 4a57937249
2 changed files with 4 additions and 0 deletions

View File

@@ -24,6 +24,8 @@ k_getpwnam (char *user)
p->pw_passwd = spwd->sp_pwdp;
endspent ();
}
#else
endpwent ();
#endif
return p;
}

View File

@@ -24,6 +24,8 @@ k_getpwuid (uid_t uid)
p->pw_passwd = spwd->sp_pwdp;
endspent ();
}
#else
endpwent ();
#endif
return p;
}