Date: Sun, 18 Nov 2018 10:54:39 +0000 (UTC) From: Kristof Provost <kp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r340560 - stable/11/sbin/pfctl Message-ID: <201811181054.wAIAsdle011729@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811181054.wAIAsdle011729>