diff options
author | bdrewery <bdrewery@FreeBSD.org> | 2014-10-02 18:05:00 +0000 |
---|---|---|
committer | bdrewery <bdrewery@FreeBSD.org> | 2014-10-02 18:05:00 +0000 |
commit | 7d399012dbd1e9285f94c56b2deac0dc5059db9c (patch) | |
tree | 51d84d6bc2ad5512e19ae5f2577706974b8c061e /etc | |
parent | f19c28648acf3bcdd5e4454a0d7fb42ceb6f1860 (diff) | |
download | FreeBSD-src-7d399012dbd1e9285f94c56b2deac0dc5059db9c.zip FreeBSD-src-7d399012dbd1e9285f94c56b2deac0dc5059db9c.tar.gz |
MFC r271321:
Don't cross mount boundaries when cleaning tmp files.
Approved by: re (gjb)
Relnotes: yes
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/periodic/daily/110.clean-tmps | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/periodic/daily/110.clean-tmps b/etc/periodic/daily/110.clean-tmps index eef3bc6..67bcec6 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 |