rpms/setup/F-9 setup-2.6.18-ksh-portability.patch, NONE, 1.1 setup.spec, 1.58, 1.59

Ondrej Vasik ovasik at fedoraproject.org
Thu Feb 26 12:27:58 UTC 2009


Author: ovasik

Update of /cvs/extras/rpms/setup/F-9
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv18991

Modified Files:
	setup.spec 
Added Files:
	setup-2.6.18-ksh-portability.patch 
Log Message:
fix non-portable redirect (&>) used in /etc/profile and /etc/bashrc which causes spurious ksh login output

setup-2.6.18-ksh-portability.patch:

--- NEW FILE setup-2.6.18-ksh-portability.patch ---
diff -urNp setup-2.6.18-orig/bashrc setup-2.6.18/bashrc
--- setup-2.6.18-orig/bashrc	2009-02-26 13:22:36.000000000 +0100
+++ setup-2.6.18/bashrc	2009-02-26 13:23:45.000000000 +0100
@@ -56,7 +56,7 @@ if ! shopt -q login_shell ; then # We're
 			if [ "$PS1" ]; then
 				. $i
 			else
-				. $i &>/dev/null
+				. $i >/dev/null 2>&1
 			fi
 		fi
 	done
diff -urNp setup-2.6.18-orig/profile setup-2.6.18/profile
--- setup-2.6.18-orig/profile	2009-02-26 13:22:36.000000000 +0100
+++ setup-2.6.18/profile	2009-02-26 13:23:32.000000000 +0100
@@ -45,7 +45,7 @@ for i in /etc/profile.d/*.sh ; do
         if [ "$PS1" ]; then
             . $i
         else
-            . $i &>/dev/null
+            . $i >/dev/null 2>&1
         fi
     fi
 done


Index: setup.spec
===================================================================
RCS file: /cvs/extras/rpms/setup/F-9/setup.spec,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -r1.58 -r1.59
--- setup.spec	3 Feb 2009 13:14:16 -0000	1.58
+++ setup.spec	26 Feb 2009 12:27:27 -0000	1.59
@@ -1,7 +1,7 @@
 Summary: A set of system configuration and setup files.
 Name: setup
 Version: 2.6.18
-Release: 2%{?dist}
+Release: 3%{?dist}
 License: Public Domain
 Group: System Environment/Base
 Source: setup-%{version}.tar.bz2
@@ -14,6 +14,7 @@
 Patch2: setup-2.6.18-uidgid.patch
 Patch3: setup-2.6.18-protocolservices.patch
 Patch4: setup-2.6.18-rxvt.patch
+Patch5: setup-2.6.18-ksh-portability.patch
 
 
 %description
@@ -26,6 +27,7 @@
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch5 -p1
 
 %build
 # Run any sanity checks.
@@ -86,6 +88,10 @@
 %ghost %verify(not md5 size mtime) %config(noreplace,missingok) /etc/mtab
 
 %changelog
+* Thu Feb 26 2009 Ondrej Vasik <ovasik at redhat.com> 2.6.18-3
+- fix non-portable redirect (&>) used in /etc/profile and
+  /etc/bashrc which causes spurious ksh login output(#487419)
+
 * Fri Jan 30 2009 Ondrej Vasik <ovasik at redhat.com> 2.6.18-2
 - add gid 87 reservation for polkituser, add gid reservation
   for group cdrom(:11), dialout(:18) tape (:33), kvm (:36),




More information about the fedora-extras-commits mailing list