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
This commit is contained in:
parent
695df15da2
commit
6e84ba78c1
@ -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'`
|
||||
|
Loading…
Reference in New Issue
Block a user