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