Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Oct 2018 04:12:51 +0000 (UTC)
From:      Kristof Provost <kp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r339578 - head/sbin/pfctl
Message-ID:  <201810220412.w9M4CpwY095579@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810220412.w9M4CpwY095579>