From 5f2163b4318907a010882b4ccae7186f34c50139 Mon Sep 17 00:00:00 2001 From: matthieu Date: Sun, 6 Nov 2016 10:17:38 +0000 Subject: [PATCH] Remove useless endpwent() calls --- app/xenodm/greeter/verify.c | 1 - app/xenodm/xenodm/session.c | 1 - 2 files changed, 2 deletions(-) diff --git a/app/xenodm/greeter/verify.c b/app/xenodm/greeter/verify.c index 686aae200..4c4a84ca0 100644 --- a/app/xenodm/greeter/verify.c +++ b/app/xenodm/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/app/xenodm/xenodm/session.c b/app/xenodm/xenodm/session.c index 3a1760a4f..741e05292 100644 --- a/app/xenodm/xenodm/session.c +++ b/app/xenodm/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));