From: millert Date: Mon, 22 Apr 2024 14:20:35 +0000 (+0000) Subject: newsyslog: allow the F flag to be used on its own. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c9d1730449eec77ef32eac9e3199c592631aef8c;p=openbsd 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. --- 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) {