Avoid to try to remove suj journal file (.sujournal) and conventional
snapshot directory (.snap) from cleartmp rc.d script.
This commit is contained in:
parent
21f9b7b28a
commit
6f0bcd4110
@ -36,7 +36,10 @@ cleartmp_start()
|
||||
# it can prevent foot-shooting in future.
|
||||
# + /tmp/lost+found is preserved, but its contents are removed.
|
||||
# + lost+found and quota.* in subdirectories are removed.
|
||||
# + .sujournal and .snap are preserved.
|
||||
find -x ${tmp}/. ! -name . \
|
||||
! \( -name .sujournal -type f -user root \) \
|
||||
! \( -name .snap -type d -user root \) \
|
||||
! \( -name lost+found -type d -user root \) \
|
||||
! \( \( -name quota.user -or -name quota.group \) \
|
||||
-type f -user root \) \
|
||||
|
Loading…
Reference in New Issue
Block a user