From c713dcd93922572db089e49b066cb64c33f3bffa Mon Sep 17 00:00:00 2001 From: bdrewery Date: Thu, 2 Oct 2014 18:05:00 +0000 Subject: [PATCH] MFC r271321: Don't cross mount boundaries when cleaning tmp files. Approved by: re (gjb) Relnotes: yes git-svn-id: svn://svn.freebsd.org/base/stable/10@272430 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- etc/periodic/daily/110.clean-tmps | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/periodic/daily/110.clean-tmps b/etc/periodic/daily/110.clean-tmps index eef3bc654..67bcec6f0 100755 --- a/etc/periodic/daily/110.clean-tmps +++ b/etc/periodic/daily/110.clean-tmps @@ -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 -- 2.45.0