aboutsummaryrefslogtreecommitdiffstats
path: root/src/login.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-11-19 01:08:57 +0100
committerMattias Andrée <maandree@operamail.com>2013-11-19 01:08:57 +0100
commitdb52f5cb409b9df43f9d231f78339f7787d9c7a4 (patch)
tree0096c258ea06cb2693846bae1a904a93a1a9b36f /src/login.h
parentm + redisable echo when the tty has been reopened (diff)
downloadlibpassphrase-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.h7
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