aboutsummaryrefslogtreecommitdiffstats
path: root/src/cerberus.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cerberus.c')
-rw-r--r--src/cerberus.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cerberus.c b/src/cerberus.c
index e52a48f..c555a2b 100644
--- a/src/cerberus.c
+++ b/src/cerberus.c
@@ -196,6 +196,7 @@ void do_login(int argc, char** argv)
#ifdef USE_TTY_GROUP
if ((group = getgrnam(TTY_GROUP)))
tty_group = group->gr_gid;
+ endgrent();
#endif
secure_tty(tty_group);
@@ -223,6 +224,7 @@ void do_login(int argc, char** argv)
sleep(ERROR_SLEEP);
_exit(1);
}
+ endpwent();
username = entry->pw_name;