Remove useless endpwent() calls
This commit is contained in:
parent
cc885e4714
commit
5f2163b431
@ -214,7 +214,6 @@ autoLoginEnv(struct display *d, struct verify_info *verify,
|
||||
|
||||
Debug("Autologin %s\n", d->autoLogin);
|
||||
p = getpwnam (d->autoLogin);
|
||||
endpwent();
|
||||
if (p == NULL)
|
||||
return 0;
|
||||
|
||||
|
@ -339,7 +339,6 @@ StartClient (
|
||||
name, _SysErrorMsg (errno));
|
||||
return (0);
|
||||
}
|
||||
endpwent();
|
||||
} else {
|
||||
LogError ("getpwnam for \"%s\" failed: %s\n",
|
||||
name, _SysErrorMsg (errno));
|
||||
|
Loading…
Reference in New Issue
Block a user