[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[lintian] 01/01: Apply patch from Carlos Maddela <e7appew@gmail.com> to prevent false-positives when options contain escaped quotation marks. (Closes: #886574)



This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch master
in repository lintian.

commit ded2b2a9e7ccb349b04a404e72415e96e6f37ee2
Author: Carlos Maddela <e7appew@gmail.com>
Date:   Tue Jan 9 14:24:43 2018 +0530

    Apply patch from Carlos Maddela <e7appew@gmail.com> to prevent false-positives when options contain escaped quotation marks. (Closes: #886574)
    
    Signed-off-by: Chris Lamb <lamby@debian.org>
---
 checks/watch-file.pm | 2 +-
 debian/changelog     | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/checks/watch-file.pm b/checks/watch-file.pm
index b4aead3..e464cdd 100644
--- a/checks/watch-file.pm
+++ b/checks/watch-file.pm
@@ -98,7 +98,7 @@ sub run {
                 $prerelease_mangle, $prerelease_umangle
             ) = (0, 0, 0, 0);
             my ($opts, @opts);
-            if (   s/^opt(?:ion)?s=\"([^\"]+)\"\s+//
+            if (   s/^opt(?:ion)?s=\"((?:[^\"]|\\\")+)\"\s+//
                 || s/^opt(?:ion)?s=(\S+)\s+//) {
                 $opts = $1;
                 @opts = split($watchver >= 4 ? '\s*,\s*' : ',', $opts);
diff --git a/debian/changelog b/debian/changelog
index 25f76e5..c637f18 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -65,6 +65,10 @@ lintian (2.5.68) UNRELEASED; urgency=medium
   * checks/standards-version.desc:
     + [CL] Downgrade severity of out-of-date-standards-version from normal
       ("W:") to wishlist ("I:").  (Closes: #886210)
+  * checks/watch-file.pm:
+    + [CL] Apply patch from Carlos Maddela <e7appew@gmail.com> to prevent
+      false-positives when options contain escaped quotation marks.
+      (Closes: #886574)
 
   * collection/src-orig-index:
     + [CL] Return the replacement value after injecting any tarball prefix,

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: