From db52f5cb409b9df43f9d231f78339f7787d9c7a4 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 19 Nov 2013 01:08:57 +0100 Subject: move exec instructions into login.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/login.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/login.h') 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 -- cgit v1.2.3-70-g09d2