diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-11-19 01:08:57 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-11-19 01:08:57 +0100 |
commit | db52f5cb409b9df43f9d231f78339f7787d9c7a4 (patch) | |
tree | 0096c258ea06cb2693846bae1a904a93a1a9b36f /src/login.h | |
parent | m + redisable echo when the tty has been reopened (diff) | |
download | libpassphrase-db52f5cb409b9df43f9d231f78339f7787d9c7a4.tar.gz libpassphrase-db52f5cb409b9df43f9d231f78339f7787d9c7a4.tar.bz2 libpassphrase-db52f5cb409b9df43f9d231f78339f7787d9c7a4.tar.xz |
move exec instructions into login.c
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/login.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/login.h b/src/login.h index 14014f2..e335e7c 100644 --- a/src/login.h +++ b/src/login.h @@ -51,6 +51,13 @@ void ensure_shell(struct passwd* entry); */ void set_environ(struct passwd* entry, char preserve_env); +/** + * Replace the current image with the user's login shell + * + * @param entry The user entry in the password file + */ +void exec_shell(struct passwd* entry); + #endif |