Author: bdrewery Date: Tue Sep 9 17:03:58 2014 New Revision: 271321 URL: http://svnweb.freebsd.org/changeset/base/271321
Log: Don't cross mount boundaries when cleaning tmp files. Mounting something in /tmp such as a build jail with nullfs mounts for some directories can result in very surprising results the next day. MFC after: 2 weeks Relnotes: yes Modified: head/etc/periodic/daily/110.clean-tmps Modified: head/etc/periodic/daily/110.clean-tmps ============================================================================== --- head/etc/periodic/daily/110.clean-tmps Tue Sep 9 16:57:02 2014 (r271320) +++ head/etc/periodic/daily/110.clean-tmps Tue Sep 9 17:03:58 2014 (r271321) @@ -45,8 +45,8 @@ case "$daily_clean_tmps_enable" in rc=$(for dir in $daily_clean_tmps_dirs do [ ."${dir#/}" != ."$dir" -a -d $dir ] && cd $dir && { - find -d . -type f $args -delete $print - find -d . ! -name . -type d $dargs -delete $print + find -x -d . -type f $args -delete $print + find -x -d . ! -name . -type d $dargs -delete $print } | sed "s,^\\., $dir," done | tee /dev/stderr | wc -l) [ -z "$print" ] && rc=0 _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"