From c9d1730449eec77ef32eac9e3199c592631aef8c Mon Sep 17 00:00:00 2001 From: millert Date: Mon, 22 Apr 2024 14:20:35 +0000 Subject: [PATCH] newsyslog: allow the F flag to be used on its own. Fixes a conditional that lacked a check for 'F' or 'f'. From Alvar Penning. --- usr.bin/newsyslog/newsyslog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/newsyslog/newsyslog.c b/usr.bin/newsyslog/newsyslog.c index a79106c7743..852f1dfac87 100644 --- a/usr.bin/newsyslog/newsyslog.c +++ b/usr.bin/newsyslog/newsyslog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: newsyslog.c,v 1.113 2023/03/08 04:43:12 guenther Exp $ */ +/* $OpenBSD: newsyslog.c,v 1.114 2024/04/22 14:20:35 millert Exp $ */ /* * Copyright (c) 1999, 2002, 2003 Todd C. Miller @@ -616,7 +616,7 @@ nextline: q = sob(++parse); /* Optional field */ if (*q == 'Z' || *q == 'z' || *q == 'B' || *q == 'b' || - *q == 'M' || *q == 'm') { + *q == 'M' || *q == 'm' || *q == 'F' || *q == 'f') { *(parse = son(q)) = '\0'; while (*q) { switch (*q) { -- 2.20.1