diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2016-11-06 10:17:39 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@herrb.eu> | 2020-07-14 15:52:35 +0200 |
commit | 87e6642de9b988641dc2dba6d107eaec808a1379 (patch) | |
tree | c5c96f18d891e2a3d5dc80abd997d625b4157671 | |
parent | 5eefdec0057f0f057773e1a4ab3e34d72c269586 (diff) |
Remove useless endpwent() calls
-rw-r--r-- | greeter/verify.c | 1 | ||||
-rw-r--r-- | xenodm/session.c | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/greeter/verify.c b/greeter/verify.c index 686aae2..4c4a84c 100644 --- a/greeter/verify.c +++ b/greeter/verify.c @@ -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; diff --git a/xenodm/session.c b/xenodm/session.c index 3a1760a..741e052 100644 --- a/xenodm/session.c +++ b/xenodm/session.c @@ -339,7 +339,6 @@ StartClient ( name, _SysErrorMsg (errno)); return (0); } - endpwent(); } else { LogError ("getpwnam for \"%s\" failed: %s\n", name, _SysErrorMsg (errno)); |