mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
1 changed files with 1 additions and 0 deletions
|
|
@ -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 a new issue