summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/cleartmp
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc.d/cleartmp')
-rwxr-xr-xetc/rc.d/cleartmp3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/rc.d/cleartmp b/etc/rc.d/cleartmp
index 94b7799..0d84987 100755
--- a/etc/rc.d/cleartmp
+++ b/etc/rc.d/cleartmp
@@ -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 \) \
OpenPOWER on IntegriCloud