From cce7f73d7243cbb103c49b4d24cf49fdcd35cd74 Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Thu, 19 Jul 2001 12:08:24 +0000 Subject: [PATCH] Don't try to remove directories unless we've emptied them first Submitted by: NIIMI Satoshi PR: 28355 MFC after: 1 week --- etc/periodic/daily/110.clean-tmps | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/periodic/daily/110.clean-tmps b/etc/periodic/daily/110.clean-tmps index b6a4795a77b..cd2dab0bc64 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)