]> git.pld-linux.org Git - packages/util-linux.git/commitdiff
- login-problems patch: should solve problems with ash/csh/ksh/zsh as login util-linux-2_11g-6
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 16 Aug 2001 22:24:25 +0000 (22:24 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  shell
- release 6

Changed files:
    util-linux-login-problems.patch -> 1.1
    util-linux.spec -> 1.129

util-linux-login-problems.patch [new file with mode: 0644]
util-linux.spec

diff --git a/util-linux-login-problems.patch b/util-linux-login-problems.patch
new file mode 100644 (file)
index 0000000..418f713
--- /dev/null
@@ -0,0 +1,33 @@
+--- util-linux-2.11g/login-utils/login.c.orig  Thu Aug 16 20:21:01 2001
++++ util-linux-2.11g/login-utils/login.c       Thu Aug 16 20:23:07 2001
+@@ -1080,6 +1080,9 @@
+      * setsid() or setpgrp(), then a ctrl-\, sending SIGQUIT to every
+      * process in the pgrp, will kill us.
+      * Solution: use TIOCNOTTY and setsid().
++     *
++     * removed "Solution" - caused serious problems with ash/csh/ksh/zsh
++     * as login shell  -- qboosh
+      */
+     signal(SIGINT, SIG_IGN);
+     signal(SIGHUP, SIG_IGN);  /* ignore signal from TIOCNOTTY below */
+@@ -1093,7 +1096,7 @@
+        exit(0);
+     } else if (childPid) {
+        /* parent - wait for child to finish, then cleanup session */
+-       ioctl(0, TIOCNOTTY, NULL);
++    /* ioctl(0, TIOCNOTTY, NULL); */
+        signal(SIGHUP, SIG_DFL);
+        wait(NULL);
+@@ -1101,9 +1104,9 @@
+        exit(0);
+     }
+     /* child */
+-    setsid();
++/*  setsid(); */
+     /* reopen, as we need controlling tty in the child */
+-    opentty(ttyn);
++/*  opentty(ttyn); */
+ #endif
+     signal(SIGHUP, SIG_DFL);
+     signal(SIGINT, SIG_DFL);
index 2c079032d86b0dadb3a9048ce11c7a3d45ca6a43..dd59857fed9eba6a7346a8415442e14f608eb30e 100644 (file)
@@ -13,7 +13,7 @@
 %define                _kernel_series  2.2
 %endif
 
-%define                rel     5
+%define                rel     6
 
 Summary:       Collection of basic system utilities for Linux
 Summary(de):   Sammlung von grundlegenden Systemdienstprogrammen für Linux
@@ -71,6 +71,7 @@ Patch16:      %{name}-s390.patch
 Patch18:       %{name}-kerneli-2.4.patch
 Patch20:       %{name}-qnx4.patch
 Patch21:       %{name}-losetup-getpass.patch
+Patch22:       %{name}-login-problems.patch
 BuildRequires: pam-devel >= 0.66
 BuildRequires: ncurses-devel >= 5.0
 BuildRequires: gettext-devel
@@ -337,6 +338,7 @@ Obs
 %if !%{_kernel24}
 %patch21 -p1
 %endif
+%patch22 -p1
 
 %build
 CFLAGS="%{rpmcflags} -I%{_includedir}/ncurses -I%{_kernelsrcdir}/include"
This page took 0.143029 seconds and 4 git commands to generate.