From 87e6642de9b988641dc2dba6d107eaec808a1379 Mon Sep 17 00:00:00 2001 From: Matthieu Herrb Date: Sun, 6 Nov 2016 10:17:39 +0000 Subject: Remove useless endpwent() calls --- greeter/verify.c | 1 - xenodm/session.c | 1 - 2 files changed, 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)); -- cgit v1.2.3