Skip to contentSkip to conversation

fixfiles -C: behave as advertised

PATCH Applied Marshall Miller 2 participants 2 messages Jan 24, 2008 – Jan 25, 2008 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fixfiles -C: behave as advertised

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

Marshall Miller

scripts/fixfiles +2 -2
Index: policycoreutils/scripts/fixfiles
===================================================================
@@ -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
#1 lore raw
Quoted 1 line · Marshall Miller

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

Thanks, applied.

Signature · 8 lines
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.