aboutsummaryrefslogtreecommitdiff
path: root/src/rc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rc.c')
-rw-r--r--src/rc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/rc.c b/src/rc.c
index 3b9eaf1a..d20616fb 100644
--- a/src/rc.c
+++ b/src/rc.c
@@ -398,8 +398,7 @@ static void sulogin (bool cont)
eerrorx ("%s: vfork: %s", applet, strerror (errno));
if (pid == 0) {
#ifdef __linux__
- execle ("/sbin/sulogin", "/sbin/sulogin",
- getenv ("CONSOLE"), (char *) NULL, newenv);
+ execle ("/sbin/sulogin", "/sbin/sulogin", (char *) NULL, newenv);
eerror ("%s: unable to exec `/sbin/sulogin': %s", applet,
strerror (errno));
#else
@@ -412,8 +411,7 @@ static void sulogin (bool cont)
waitpid (pid, &status, 0);
} else {
#ifdef __linux
- execle ("/sbin/sulogin", "/sbin/sulogin",
- getenv ("CONSOLE"), (char *) NULL, newenv);
+ execle ("/sbin/sulogin", "/sbin/sulogin", (char *) NULL, newenv);
eerrorx ("%s: unable to exec `/sbin/sulogin': %s", applet, strerror (errno));
#else
exit (EXIT_SUCCESS);