summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/newsyslog/newsyslog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/newsyslog/newsyslog.c b/usr.sbin/newsyslog/newsyslog.c
index 3d7ff8a900e0..4c9603c0131b 100644
--- a/usr.sbin/newsyslog/newsyslog.c
+++ b/usr.sbin/newsyslog/newsyslog.c
@@ -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)