--- /dev/null
+--- 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);
%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
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
%if !%{_kernel24}
%patch21 -p1
%endif
+%patch22 -p1
%build
CFLAGS="%{rpmcflags} -I%{_includedir}/ncurses -I%{_kernelsrcdir}/include"