svn commit: r340561 - stable/12/sbin/pfctl
Kristof Provost
kp at FreeBSD.org
Sun Nov 18 10:54:52 UTC 2018
Author: kp
Date: Sun Nov 18 10:54:47 2018
New Revision: 340561
URL: https://svnweb.freebsd.org/changeset/base/340561
Log:
MFC r339578:
pfctl: Fix line numbers when \ is used inside ""
PR: 201520
Obtained from: OpenBSD
Modified:
stable/12/sbin/pfctl/parse.y
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sbin/pfctl/parse.y
==============================================================================
--- stable/12/sbin/pfctl/parse.y Sun Nov 18 10:54:38 2018 (r340560)
+++ stable/12/sbin/pfctl/parse.y Sun Nov 18 10:54:47 2018 (r340561)
@@ -5765,8 +5765,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) {
More information about the svn-src-stable
mailing list