policycoreutils: fixfile use find -delete instead of pipe to rm

fixfiles uses a find command then than pipes that to rm -f.  Just use
the find delete predicate instead of causing all of those extra calls to
rm.

Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Dan Walsh <dwalsh@redhat.com>
This commit is contained in:
Eric Paris 2011-07-10 13:27:11 +02:00
parent da484b88d5
commit 6084f72aaf

View File

@ -146,7 +146,7 @@ exit $?
fullrelabel() {
logit "Cleaning out /tmp"
find /tmp/ -mindepth 1 -print0 | xargs -0 /bin/rm -f
find /tmp/ -mindepth 1 -delete
LogReadOnly
restore
}