Author: daichi
Date: Sun Sep  5 05:44:40 2010
New Revision: 212222
URL: http://svn.freebsd.org/changeset/base/212222

Log:
  Avoid to try to remove suj journal file (.sujournal) and conventional
  snapshot directory (.snap) from cleartmp rc.d script.

Modified:
  head/etc/rc.d/cleartmp

Modified: head/etc/rc.d/cleartmp
==============================================================================
--- head/etc/rc.d/cleartmp      Sun Sep  5 04:58:16 2010        (r212221)
+++ head/etc/rc.d/cleartmp      Sun Sep  5 05:44:40 2010        (r212222)
@@ -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 \) \
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to