[lintian] 01/01: Fix regex problems in script.pm
This is an automated email from the git hooks/post-receive script.
broucaries-guest pushed a commit to branch master
in repository lintian.
commit fd24e4edce3b90ca1dde9a5f06650bf3010405d6
Author: Bastien ROUCARIÈS <roucaries.bastien+debian@gmail.com>
Date: Sun Aug 30 18:02:22 2015 +0200
Fix regex problems in script.pm
---
checks/scripts.pm | 4 ++--
debian/changelog | 4 +++-
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/checks/scripts.pm b/checks/scripts.pm
index 94db5bd..9a8dde2 100644
--- a/checks/scripts.pm
+++ b/checks/scripts.pm
@@ -1165,7 +1165,7 @@ sub script_is_evil_and_wrong {
# Finally the whole subexpression may be omitted for scripts
# which do not pass on their parameters (i.e. after re-execing
# they take their parameters (and potentially data) from stdin
- .?(?:\${1:?\+.?)?(?:\$[\@\*])?~x
+ .?(?:\$[{]1:?\+.?)?(?:\$[\@\*])?~x
) {
$ret = 1;
last;
@@ -1180,7 +1180,7 @@ sub script_is_evil_and_wrong {
# As above
.?\$$var.?\s*
(?:--\s*)?
- .?(?:\${1:?\+.?)?(?:\$[\@\*])?.?\s*\&~x
+ .?(?:\$[{]1:?\+.?)?(?:\$[\@\*])?.?\s*\&~x
) {
$backgrounded = 1;
diff --git a/debian/changelog b/debian/changelog
index 8fe399b..02904a5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -18,11 +18,13 @@ lintian (2.5.37) UNRELEASED; urgency=medium
stripping comment. Classify to minified if line > 1024.
* checks/description.pm:
+ [AB] Fix false positives in
- perl-module-name-not-mentioned-in-description (Closes: #795779)
+ perl-module-name-not-mentioned-in-description. (Closes: #795779)
* checks/fields.{desc,pm}:
+ [JW] Use "an" (instead of "a") before "HTTP".
+ [NT] Assert that -dbgsym packages are in the "debug" section.
Thanks to Jean-Michel Vourgère for reporting the issue.
+ * checks/scripts.pm:
+ + [BR] Fix Unescaped left brace in regex. (Closes: #788926)
* checks/version-substvars.pm:
+ [BR] Fix Unescaped left brace in regex is deprecated line 68.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: