svn commit: r272430 - stable/10/etc/periodic/daily
Bryan Drewery
bdrewery at FreeBSD.org
Thu Oct 2 18:05:01 UTC 2014
Author: bdrewery
Date: Thu Oct 2 18:05:00 2014
New Revision: 272430
URL: https://svnweb.freebsd.org/changeset/base/272430
Log:
MFC r271321:
Don't cross mount boundaries when cleaning tmp files.
Approved by: re (gjb)
Relnotes: yes
Modified:
stable/10/etc/periodic/daily/110.clean-tmps
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/etc/periodic/daily/110.clean-tmps
==============================================================================
--- stable/10/etc/periodic/daily/110.clean-tmps Thu Oct 2 18:00:16 2014 (r272429)
+++ stable/10/etc/periodic/daily/110.clean-tmps Thu Oct 2 18:05:00 2014 (r272430)
@@ -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-stable-10
mailing list