svn commit: r339578 - head/sbin/pfctl
Kristof Provost
kp at FreeBSD.org
Mon Oct 22 04:12:52 UTC 2018
Author: kp
Date: Mon Oct 22 04:12:51 2018
New Revision: 339578
URL: https://svnweb.freebsd.org/changeset/base/339578
Log:
pfctl: Fix line numbers when \ is used inside ""
PR: 201520
Obtained from: OpenBSD
MFC after: 2 weeks
Modified:
head/sbin/pfctl/parse.y
Modified: head/sbin/pfctl/parse.y
==============================================================================
--- head/sbin/pfctl/parse.y Mon Oct 22 03:29:54 2018 (r339577)
+++ head/sbin/pfctl/parse.y Mon Oct 22 04:12:51 2018 (r339578)
@@ -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-head
mailing list