From 6e84ba78c1e87fa1e85a82b4907bc9f88dd635f2 Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Sun, 6 Oct 2002 18:48:20 +0000 Subject: [PATCH] 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 cd2dab0bc64..0d2e96ad79a 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'`