[Lunar-commits] CVS: moonbase/utils/coreutils BUILD,1.6,1.7

Auke Kok sofar at lunar-linux.org
Fri Feb 20 11:50:41 GMT 2004


Update of /var/cvs/lunar/moonbase/utils/coreutils
In directory dbguin.lunar-linux.org:/tmp/cvs-serv31239

Modified Files:
	BUILD 
Log Message:
BUGFIX, set PATH=/bin:/usr/bin to make sure no bash searchpath corruption occurs. Needs testing on machines going from 5.0 to 5.2.0 !!!


Index: BUILD
===================================================================
RCS file: /var/cvs/lunar/moonbase/utils/coreutils/BUILD,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- BUILD	20 Feb 2004 09:56:39 -0000	1.6
+++ BUILD	20 Feb 2004 11:50:39 -0000	1.7
@@ -2,21 +2,28 @@
 
   bad_flags -malign-double
 
+  # this is vitally important here:
+  export PATH=/bin:/usr/bin
+  
   default_build &&
   
-  for FILE in basename cat cp chgrp chmod chown cut date dd df echo false   \
-              groups head id ln ls mkdir mknod nice pwd rm rmdir sleep sort \
-	      stty sync tail tr true uname ; do
-    mv -f /usr/bin/$FILE /bin
-  done &&
-  # mv cannot be mv'ed:
-  if [ -f /usr/bin/mv ] ; then
-    cp /usr/bin/mv /bin/mv &&
-    rm /usr/bin/mv
-  fi
-  # also, bash will need to rehash, but doesn't:
-  /bin/mv -f /usr/bin/chroot /usr/sbin  &&
-  rm -f /usr/bin/hostname &&
-  rm -f /usr/bin/su
+  (
+    for FILE in basename cat cp chgrp chmod chown cut date dd df echo false   \
+                groups head id ln ls mkdir mknod nice pwd rm rmdir sleep sort \
+                stty sync tail tr true uname ; do
+      if [ -f /usr/bin/$FILE ] ; then
+        /bin/mv -f /usr/bin/$FILE /bin
+      fi
+    done &&
+    # mv cannot be mv'ed:
+    if [ -f /usr/bin/mv ] ; then
+      cp /usr/bin/mv /bin/mv &&
+      rm /usr/bin/mv
+    fi
+    # also, bash will need to rehash, but doesn't:
+    /bin/mv -f /usr/bin/chroot /usr/sbin  &&
+    /bin/rm -f /usr/bin/hostname &&
+    /bin/rm -f /usr/bin/su
+  )
 
 ) > $C_FIFO 2>&1



More information about the Lunar-commits mailing list