mirror of
https://github.com/topjohnwu/selinux.git
synced 2025-01-22 02:44:24 +00:00
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:
parent
da484b88d5
commit
6084f72aaf
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user