aboutsummaryrefslogtreecommitdiffstats
path: root/src/cerberus.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-11-22 09:45:40 +0100
committerMattias Andrée <maandree@operamail.com>2013-11-22 09:45:40 +0100
commit4b204339078eb55ba9309f1fd669b1792d6b43c6 (patch)
treeee1d4a016b24b92201ceada7c1b991a69d8e8af4 /src/cerberus.c
parentfix chmod and chown of tty device files (diff)
downloadlibpassphrase-4b204339078eb55ba9309f1fd669b1792d6b43c6.tar.gz
libpassphrase-4b204339078eb55ba9309f1fd669b1792d6b43c6.tar.bz2
libpassphrase-4b204339078eb55ba9309f1fd669b1792d6b43c6.tar.xz
add crypt auth module
Signed-off-by: Mattias Andrée <maandree@operamail.com>
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;