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:
@@ -24,6 +24,8 @@ k_getpwnam (char *user)
|
||||
p->pw_passwd = spwd->sp_pwdp;
|
||||
endspent ();
|
||||
}
|
||||
#else
|
||||
endpwent ();
|
||||
#endif
|
||||
return p;
|
||||
}
|
||||
|
Reference in New Issue
Block a user