From 9222a5573f0b76a49cc5aabf7b7942e01537e86d Mon Sep 17 00:00:00 2001 From: kp Date: Sun, 18 Nov 2018 10:54:38 +0000 Subject: [PATCH] MFC r339578: pfctl: Fix line numbers when \ is used inside "" PR: 201520 Obtained from: OpenBSD --- sbin/pfctl/parse.y | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y index c310a61b096..c4b818fb4f1 100644 --- a/sbin/pfctl/parse.y +++ b/sbin/pfctl/parse.y @@ -5758,8 +5758,10 @@ top: return (0); if (next == quotec || c == ' ' || c == '\t') c = next; - else if (next == '\n') + else if (next == '\n') { + file->lineno++; continue; + } else lungetc(next); } else if (c == quotec) { -- 2.45.0