diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-11-22 09:45:40 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-11-22 09:45:40 +0100 |
commit | 4b204339078eb55ba9309f1fd669b1792d6b43c6 (patch) | |
tree | ee1d4a016b24b92201ceada7c1b991a69d8e8af4 /src/cerberus.c | |
parent | fix chmod and chown of tty device files (diff) | |
download | libpassphrase-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.c | 2 |
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; |