[patch] fixfiles -C: behave as advertised

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch makes fixfiles -C <file> (restore|check|verify|relabel) behave as advertised.



Marshall Miller

Index: policycoreutils/scripts/fixfiles
===================================================================
--- policycoreutils/scripts/fixfiles	(revision 2757)
+++ policycoreutils/scripts/fixfiles	(working copy)
@@ -92,7 +92,7 @@
 		      ! \( -fstype ext2 -o -fstype ext3 -o -fstype ext4 -o -fstype ext4dev  -o -fstype gfs2 -o -fstype jfs -o -fstype xfs \) -prune  -o \
 		      \( -wholename /home -o -wholename /root -o -wholename /tmp -wholename /dev \) -prune -o -print0"; \
 		      done 2> /dev/null | \
-	 ${RESTORECON} $2 -0 -f - 
+	 ${RESTORECON} $* -0 -f - 
 	rm -f ${TEMPFILE} ${PREFCTEMPFILE}
 fi
 }
@@ -117,7 +117,7 @@
 #
 restore () {
 if [ ! -z "$PREFC" ]; then
-    diff_filecontext $1
+    diff_filecontext $*
     exit $?
 fi
 if [ ! -z "$RPMFILES" ]; then

[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux