aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--loginutils/login.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/loginutils/login.c b/loginutils/login.c
index 04283007b..2ad52c63e 100644
--- a/loginutils/login.c
+++ b/loginutils/login.c
@@ -386,7 +386,14 @@ auth_failed:
386 // /* TIOCSCTTY: steal tty from other process group */ 386 // /* TIOCSCTTY: steal tty from other process group */
387 // if (ioctl(0, TIOCSCTTY, 1)) error_msg... 387 // if (ioctl(0, TIOCSCTTY, 1)) error_msg...
388 388
389 signal(SIGALRM, SIG_DFL); /* set signals to defaults */ 389 /* set signals to defaults */
390 signal(SIGALRM, SIG_DFL);
391 /* Is this correct? This way user can ctrl-c out of /etc/profile,
392 * potentially creating security breach (tested with bash 3.0).
393 * But without this, bash 3.0 will not enable ctrl-c either.
394 * Maybe bash is buggy?
395 * Need to find out what standards say about /bin/login -
396 * should it leave SIGINT etc enabled or disabled? */
390 signal(SIGINT, SIG_DFL); 397 signal(SIGINT, SIG_DFL);
391 398
392 run_shell(tmp, 1, 0, 0); /* exec the shell finally */ 399 run_shell(tmp, 1, 0, 0); /* exec the shell finally */