svn commit: r272431 - stable/9/etc/periodic/daily

Bryan Drewery bdrewery at FreeBSD.org
Thu Oct 2 18:05:54 UTC 2014


Author: bdrewery
Date: Thu Oct  2 18:05:53 2014
New Revision: 272431
URL: https://svnweb.freebsd.org/changeset/base/272431

Log:
  MFC r271321:
  
    Don't cross mount boundaries when cleaning tmp files.
  
  Relnotes:	yes

Modified:
  stable/9/etc/periodic/daily/110.clean-tmps
Directory Properties:
  stable/9/etc/   (props changed)

Modified: stable/9/etc/periodic/daily/110.clean-tmps
==============================================================================
--- stable/9/etc/periodic/daily/110.clean-tmps	Thu Oct  2 18:05:00 2014	(r272430)
+++ stable/9/etc/periodic/daily/110.clean-tmps	Thu Oct  2 18:05:53 2014	(r272431)
@@ -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


More information about the svn-src-all mailing list