Fix -F with logfiles rotated on time only.

Approved by:	silence on -audit
MFC after:	1 month
This commit is contained in:
Peter Pentchev 2002-02-05 09:33:07 +00:00
parent f93e740631
commit 115f46ff8f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=90240

View File

@ -159,7 +159,7 @@ do_entry(struct conf_entry * ent)
if (verbose)
printf("does not exist.\n");
} else {
if (ent->flags & CE_TRIMAT) {
if (ent->flags & CE_TRIMAT && !force) {
if (timenow < ent->trim_at
|| difftime(timenow, ent->trim_at) >= 60 * 60) {
if (verbose)