summaryrefslogtreecommitdiffstats
path: root/login-utils/sulogin.c
diff options
context:
space:
mode:
Diffstat (limited to 'login-utils/sulogin.c')
-rw-r--r--login-utils/sulogin.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/login-utils/sulogin.c b/login-utils/sulogin.c
index c9e376c43..f672e7531 100644
--- a/login-utils/sulogin.c
+++ b/login-utils/sulogin.c
@@ -54,7 +54,6 @@
#define F_PASSWD "/etc/passwd"
#define F_SHADOW "/etc/shadow"
#define BINSH "/bin/sh"
-#define STATICSH "/bin/sash"
static int timeout;
static int profile;
@@ -400,12 +399,6 @@ static void sushell(struct passwd *pwd)
setenv("SHELL", BINSH, 1);
execl(BINSH, profile ? "-sh" : "sh", NULL);
perror(BINSH);
-
- /* Fall back to staticly linked shell if both the users shell
- and /bin/sh failed to execute. */
- setenv("SHELL", STATICSH, 1);
- execl(STATICSH, STATICSH, NULL);
- perror(STATICSH);
}
static void usage(void)