diff --git a/debian/changelog b/debian/changelog index 41f48eb4..57f76056 100644 --- a/debian/changelog +++ b/debian/changelog @@ -13,6 +13,7 @@ shadow (1:4.1.1~rc1-1) UNRELEASED; urgency=low + debian/patches/467_useradd_-r_LSB + debian/patches/466_fflush-prompt + debian/patches/480_getopt_args_reorder + + debian/patches/496_login_init_session * debian/watch: Add a watch file for shadow. -- Nicolas FRANCOIS (Nekral) Sun, 24 Feb 2008 18:33:31 +0100 diff --git a/debian/patches/496_login_init_session b/debian/patches/496_login_init_session deleted file mode 100644 index 4b976d52..00000000 --- a/debian/patches/496_login_init_session +++ /dev/null @@ -1,60 +0,0 @@ -Goal: Make login initialize a session to allow ^C and ^Z to work when - booting with init=/bin/login - Only do this if we are init (getppid() == 1) (see #380522) - -Fix: #374547 - -Author: Samuel Thibault - -Status wrt upstream: reported, not applied yet - -Index: shadow-4.1.0/src/login.c -=================================================================== ---- shadow-4.1.0.orig/src/login.c -+++ shadow-4.1.0/src/login.c -@@ -41,6 +41,7 @@ - #include - #include - #include -+#include - #include "defines.h" - #include "faillog.h" - #include "failure.h" -@@ -1070,6 +1071,12 @@ - } - /* child */ - #endif -+ /* If we were init, we need to start the session */ -+ if (getppid() == 1) { -+ setsid(); -+ if (ioctl(0, TIOCSCTTY, 1)) -+ fprintf(stderr,_("TIOCSCTTY failed on %s"),tty); -+ } - - /* We call set_groups() above because this clobbers pam_groups.so */ - #ifndef USE_PAM -Index: shadow-4.1.0/src/sulogin.c -=================================================================== ---- shadow-4.1.0.orig/src/sulogin.c -+++ shadow-4.1.0/src/sulogin.c -@@ -35,6 +35,7 @@ - #include - #include - #include -+#include - #include "defines.h" - #include "getdef.h" - #include "prototypes.h" -@@ -142,6 +143,12 @@ - #endif - exit (1); /* must be a terminal */ - } -+ /* If we were init, we need to start the session */ -+ if (getppid() == 1) { -+ setsid(); -+ if (ioctl(0, TIOCSCTTY, 1)) -+ fprintf(stderr,_("TIOCSCTTY failed")); -+ } - while (*envp) /* add inherited environment, */ - addenv (*envp++, NULL); /* some variables change later */ - diff --git a/debian/patches/series b/debian/patches/series index 622bd7e6..c69c2e6a 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -24,7 +24,6 @@ 487_passwd_chauthtok_failed_message 403_fix_PATH-MAX_hurd 508_nologin_in_usr_sbin -496_login_init_session 505_useradd_recommend_adduser 406_vipw_resume_properly 407_adduser_disable_PUG_with-n