diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2024-04-22 14:20:36 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2024-04-22 14:20:36 +0000 |
commit | 276a0c4640dddc4804855b52add3b0758d84368b (patch) | |
tree | e553fca8ae36ab39179fd9c7f2feb8429fd4c06b /usr.bin/newsyslog | |
parent | f413450f4bcafad447a2c9e5b19223efd61565ea (diff) |
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.
Diffstat (limited to 'usr.bin/newsyslog')
-rw-r--r-- | usr.bin/newsyslog/newsyslog.c | 4 |
1 files 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 <millert@openbsd.org> @@ -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) { |