summaryrefslogtreecommitdiffstats
path: root/etc/periodic
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2001-07-19 12:08:24 +0000
committerbrian <brian@FreeBSD.org>2001-07-19 12:08:24 +0000
commit7fee5bd13898ccb7a9999a9fbfae27fd2425e8af (patch)
treebf495e936ea9b36af967d219c26bc3298ac6a5d8 /etc/periodic
parenta47ce97e795423ed21501c5fd28f73c0e31afc5d (diff)
downloadFreeBSD-src-7fee5bd13898ccb7a9999a9fbfae27fd2425e8af.zip
FreeBSD-src-7fee5bd13898ccb7a9999a9fbfae27fd2425e8af.tar.gz
Don't try to remove directories unless we've emptied them first
Submitted by: NIIMI Satoshi <sa2c@and.or.jp> PR: 28355 MFC after: 1 week
Diffstat (limited to 'etc/periodic')
-rwxr-xr-xetc/periodic/daily/110.clean-tmps2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/periodic/daily/110.clean-tmps b/etc/periodic/daily/110.clean-tmps
index b6a4795..cd2dab0 100755
--- a/etc/periodic/daily/110.clean-tmps
+++ b/etc/periodic/daily/110.clean-tmps
@@ -41,7 +41,7 @@ case "$daily_clean_tmps_enable" in
do
[ ."${dir#/}" != ."$dir" -a -d $dir ] && cd $dir && {
find -d . -type f $args -delete $print
- find -d . ! -name . -type d -mtime \
+ find -d . ! -name . -type d -empty -mtime \
+$daily_clean_tmps_days -delete $print
} | sed "s,^\\., $dir,"
done | tee /dev/stderr | wc -l)
OpenPOWER on IntegriCloud