Your message dated Fri, 14 Jul 2006 05:17:11 -0700
with message-id <[EMAIL PROTECTED]>
and subject line Bug#374547: fixed in shadow 1:4.0.17-2
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: login
Version: 1:4.0.16-2youpi
Severity: normal
Tags: patch upstream

Hi,

When booting with init=/bin/login, tty controlling sequences like ^C
or ^Z don't work. The incurred unfortunate effect is that one can't
interrupt the programs one runs (like ping, e2fsck, badblocks, ...).

This is because login doesn't initialize a session, while it should.
The attached patch corrects that, please apply.

Regards,
Samuel

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (900, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages login depends on:
ii  libc6                         2.3.6-13   GNU C Library: Shared libraries
ii  libpam-modules                0.79-3.1   Pluggable Authentication Modules f
ii  libpam-runtime                0.79-3.1   Runtime support for the PAM librar
ii  libpam0g                      0.79-3.1   Pluggable Authentication Modules l

login recommends no packages.

-- no debconf information
diff -u shadow-4.0.16/src/login.c shadow-4.0.16youpi/src/login.c
--- shadow-4.0.16/src/login.c   2006-05-07 19:44:39.000000000 +0200
+++ shadow-4.0.16youpi/src/login.c      2006-06-19 23:45:48.000000000 +0200
@@ -41,6 +41,7 @@
 #include <signal.h>
 #include <stdio.h>
 #include <sys/stat.h>
+#include <sys/ioctl.h>
 #include "defines.h"
 #include "faillog.h"
 #include "failure.h"
@@ -1026,6 +1027,10 @@
        }
        /* child */
 #endif
+       /* start new session */
+       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
--- shadow-4.0.16/src/sulogin.c 2006-05-13 01:13:10.000000000 +0200
+++ shadow-4.0.16youpi/src/sulogin.c    2006-06-19 23:46:22.000000000 +0200
@@ -35,6 +35,7 @@
 #include <pwd.h>
 #include <signal.h>
 #include <stdio.h>
+#include <sys/ioctl.h>
 #include "defines.h"
 #include "getdef.h"
 #include "prototypes.h"
@@ -142,6 +143,10 @@
 #endif
                exit (1);       /* must be a terminal */
        }
+       /* start new session */
+       setsid();
+       if (ioctl(0, TIOCSCTTY, 1))
+               fprintf(stderr,_("TIOCSCTTY failed"));
        while (*envp)           /* add inherited environment, */
                addenv (*envp++, NULL); /* some variables change later */
 

--- End Message ---
--- Begin Message ---
Source: shadow
Source-Version: 1:4.0.17-2

We believe that the bug you reported is fixed in the latest version of
shadow, which is due to be installed in the Debian FTP archive:

login_4.0.17-2_i386.deb
  to pool/main/s/shadow/login_4.0.17-2_i386.deb
passwd_4.0.17-2_i386.deb
  to pool/main/s/shadow/passwd_4.0.17-2_i386.deb
shadow_4.0.17-2.diff.gz
  to pool/main/s/shadow/shadow_4.0.17-2.diff.gz
shadow_4.0.17-2.dsc
  to pool/main/s/shadow/shadow_4.0.17-2.dsc



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Christian Perrier <[EMAIL PROTECTED]> (supplier of updated shadow package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Fri, 14 Jul 2006 13:05:53 +0200
Source: shadow
Binary: login passwd
Architecture: source i386
Version: 1:4.0.17-2
Distribution: unstable
Urgency: low
Maintainer: Shadow package maintainers <[EMAIL PROTECTED]>
Changed-By: Christian Perrier <[EMAIL PROTECTED]>
Description: 
 login      - system login tools
 passwd     - change and administer password and group data
Closes: 374547 377825
Changes: 
 shadow (1:4.0.17-2) unstable; urgency=low
 .
   * The "La Marseillaise 2006" release
   * Upstream bugs not yet fixed in upstream releases or CVS:
     - 495_salt_stack_smash: chpasswd/chgpasswd does not break if compiled
       with SSP. Closes: #377825
     - 496_login_init_session: Make login initialize a session so that
       ^C and ^Z work when used while booting with "init=/bin/login"
       Closes: #374547
Files: 
 4ba63636afa1c8b5c4fc152670d2bcdd 981 admin required shadow_4.0.17-2.dsc
 51e7835402774bd065770681c440c61c 162289 admin required shadow_4.0.17-2.diff.gz
 6963cb48995d3dc65550fbc58e16907c 752594 admin required passwd_4.0.17-2_i386.deb
 5f613a33b6279a4cd9adeab105ab9360 783052 admin required login_4.0.17-2_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFEt4nI1OXtrMAUPS0RAggLAJwPe/oyKQnlMVQiXS4+oCnoOGPS5ACglCM6
YVroB+rNgftmJssMdhKdils=
=HOt/
-----END PGP SIGNATURE-----


--- End Message ---

Reply via email to