From c654638cb1e57d77428526bfe889d74b7d93df81 Mon Sep 17 00:00:00 2001 From: joerg Date: Sun, 6 Oct 2002 18:48:20 +0000 Subject: When considering temporary files for deletion, don't examine the mtime and atime only, but also the ctime. Otherwise, files extracted from tar or zip archives will immediately be declared stale since they've got their mtime reset to the original mtime. Reviewed by: brian MFC after: 1 week --- etc/periodic/daily/110.clean-tmps | 1 + 1 file changed, 1 insertion(+) diff --git a/etc/periodic/daily/110.clean-tmps b/etc/periodic/daily/110.clean-tmps index cd2dab0..0d2e96a 100755 --- a/etc/periodic/daily/110.clean-tmps +++ b/etc/periodic/daily/110.clean-tmps @@ -27,6 +27,7 @@ case "$daily_clean_tmps_enable" in set -f noglob args="-atime +$daily_clean_tmps_days -mtime +$daily_clean_tmps_days" + args="${args} -ctime +$daily_clean_tmps_days" [ -n "$daily_clean_tmps_ignore" ] && args="$args "`echo " ${daily_clean_tmps_ignore% }" | sed 's/[ ][ ]*/ ! -name /g'` -- cgit v1.1