2005-09-28 14:41:10 +00:00
|
|
|
diff --exclude-from=exclude -N -u -r nsapolicycoreutils/scripts/fixfiles policycoreutils-1.27.2/scripts/fixfiles
|
|
|
|
--- nsapolicycoreutils/scripts/fixfiles 2005-09-20 21:21:07.000000000 -0400
|
|
|
|
+++ policycoreutils-1.27.2/scripts/fixfiles 2005-09-28 10:41:52.000000000 -0400
|
|
|
|
@@ -62,8 +62,8 @@
|
2005-09-01 16:17:38 +00:00
|
|
|
TEMPFILE=`mktemp ${FC}.XXXXXXXXXX`
|
|
|
|
test -z "$TEMPFILE" && exit
|
2005-09-28 14:41:10 +00:00
|
|
|
PREFCTEMPFILE=`mktemp ${PREFC}.XXXXXXXXXX`
|
|
|
|
- sed -r -e 's,:s0[[:space:]], ,g' $PREFC > ${PREFCTEMPFILE}
|
|
|
|
- sed -r -e 's,:s0[[:space:]], ,g' $FC | \
|
|
|
|
+ sed -r -e 's,:s0, ,g' $PREFC > ${PREFCTEMPFILE}
|
|
|
|
+ sed -r -e 's,:s0, ,g' $FC | \
|
|
|
|
/usr/bin/diff -b ${PREFCTEMPFILE} - | \
|
|
|
|
grep '^[<>]'|cut -c3-| grep ^/ | \
|
2005-09-01 16:17:38 +00:00
|
|
|
egrep -v '(^/home|^/root|^/tmp|^/dev)' |\
|
2005-09-28 14:41:10 +00:00
|
|
|
@@ -86,8 +86,10 @@
|
|
|
|
esac; \
|
|
|
|
fi; \
|
|
|
|
done | \
|
|
|
|
- while read pattern ; do find $pattern \( -fstype ext2 -o -fstype ext3 -o -fstype jfs -o -fstype xfs \) -print; done 2> /dev/null | \
|
|
|
|
- egrep -v '(^/home|^/root|^/tmp|^/dev)' |\
|
|
|
|
+ while read pattern ; do find $pattern \
|
|
|
|
+ ! \( -fstype ext2 -o -fstype ext3 -o -fstype jfs -o -fstype xfs \) -prune -o \
|
|
|
|
+ \( -wholename /home -o -wholename /root -o -wholename /tmp -wholename /dev \) -prune -o -print; \
|
|
|
|
+ done 2> /dev/null | \
|
2005-09-01 16:17:38 +00:00
|
|
|
${RESTORECON} $2 -v -f -
|
2005-09-28 14:41:10 +00:00
|
|
|
rm -f ${TEMPFILE} ${PREFCTEMPFILE}
|
2005-09-01 16:17:38 +00:00
|
|
|
fi
|