rpms/util-linux-ng/devel util-linux-ng-2.16-switchroot-tty.patch, NONE, 1.1 util-linux-ng.spec, 1.60, 1.61

kzak kzak at fedoraproject.org
Thu Oct 1 19:05:22 UTC 2009


Author: kzak

Update of /cvs/pkgs/rpms/util-linux-ng/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv17262

Modified Files:
	util-linux-ng.spec 
Added Files:
	util-linux-ng-2.16-switchroot-tty.patch 
Log Message:
* Thu Oct  1 2009 Karel Zak <kzak at redhat.com> 2.16-11
- fix #519237 - bash: cannot set terminal process group (-1): Inappropriate ioctl for device


util-linux-ng-2.16-switchroot-tty.patch:
 switch_root.c |    7 -------
 1 file changed, 7 deletions(-)

--- NEW FILE util-linux-ng-2.16-switchroot-tty.patch ---
diff -up util-linux-ng-2.16/sys-utils/switch_root.c.kzak util-linux-ng-2.16/sys-utils/switch_root.c
--- util-linux-ng-2.16/sys-utils/switch_root.c.kzak	2009-10-01 21:01:31.000000000 +0200
+++ util-linux-ng-2.16/sys-utils/switch_root.c	2009-10-01 21:01:52.000000000 +0200
@@ -267,13 +267,6 @@ int main(int argc, char *argv[])
 	if (access(init, X_OK))
 		warn("cannot access %s", init);
 
-	/* get session leader */
-	setsid();
-
-	/* set controlling terminal */
-	if (ioctl (0, TIOCSCTTY, 1))
-		warn("failed to TIOCSCTTY");
-
 	execv(init, initargs);
 	err(EXIT_FAILURE, "failed to execute %s", init);
 }


Index: util-linux-ng.spec
===================================================================
RCS file: /cvs/pkgs/rpms/util-linux-ng/devel/util-linux-ng.spec,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -p -r1.60 -r1.61
--- util-linux-ng.spec	16 Sep 2009 19:04:11 -0000	1.60
+++ util-linux-ng.spec	1 Oct 2009 19:05:20 -0000	1.61
@@ -2,7 +2,7 @@
 Summary: A collection of basic system utilities
 Name: util-linux-ng
 Version: 2.16
-Release: 10%{?dist}
+Release: 11%{?dist}
 License: GPLv2 and GPLv2+ and BSD with advertising and Public Domain
 Group: System Environment/Base
 URL: ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng
@@ -114,6 +114,8 @@ Patch10: util-linux-ng-2.16-libblkid-com
 Patch11: util-linux-ng-2.14-sfdisk-dump.patch
 # Swsuspend does not work
 Patch12: util-linux-ng-2.16-blkid-swsuspend.patch
+# 519237 - bash: cannot set terminal process group (-1): Inappropriate ioctl for device
+Patch13: util-linux-ng-2.16-switchroot-tty.patch
 
 %description
 The util-linux-ng package contains a large variety of low-level system
@@ -722,6 +724,9 @@ fi
 
 
 %changelog
+* Thu Oct  1 2009 Karel Zak <kzak at redhat.com> 2.16-11
+- fix #519237 - bash: cannot set terminal process group (-1): Inappropriate ioctl for device
+
 * Wed Sep 16 2009 Tomas Mraz <tmraz at redhat.com> - 2.16-10
 - use password-auth common PAM configuration instead of system-auth and
   drop pam_console.so call from the remote PAM config file




More information about the fedora-extras-commits mailing list