[Lunar-commits] CVS: theedge/var/lib/lunar/functions sources.lunar, 1.21, 1.22

Auke Kok sofar at lunar-linux.org
Sun Sep 26 15:36:32 UTC 2004


Update of /var/cvs/lunar/theedge/var/lib/lunar/functions
In directory espresso.foo-projects.org:/tmp/cvs-serv18243

Modified Files:
	sources.lunar 
Log Message:
fix for #433: This resets the owner and strips setGid and setUid bits on files while extracting them. As a proper precaution this should always happen. I am confident this will fix a lot of other problems in the future.


Index: sources.lunar
===================================================================
RCS file: /var/cvs/lunar/theedge/var/lib/lunar/functions/sources.lunar,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- sources.lunar	27 Aug 2004 08:51:27 -0000	1.21
+++ sources.lunar	26 Sep 2004 15:36:30 -0000	1.22
@@ -121,10 +121,10 @@
   verbose_msg "Unpacking \"$FILENAME\" in \"$(pwd)\""
 
   case $(file -b $FILENAME | cut -d' ' -f1) in
-        bzip2)  tar jxf $FILENAME ;;
-         gzip)  tar zxf $FILENAME ;;
-	  tar)  tar xf $FILENAME ;;
-    compress*)  tar zxf $FILENAME ;;
+        bzip2)  tar jxf $FILENAME -o --no-same-permissions ;;
+         gzip)  tar zxf $FILENAME -o --no-same-permissions ;;
+    compress*)  tar zxf $FILENAME -o --no-same-permissions ;;
+	  tar)  tar xf $FILENAME -o --no-same-permissions ;;
           Zip)  unzip -q $FILENAME ;;
           RPM)  rpmunpack  < $FILENAME  |  gzip  -d     \
                                         |  cpio  -idm   ;;



More information about the Lunar-commits mailing list