summaryrefslogtreecommitdiff
path: root/pkgtools/pkglint/files/pkglint.pl
diff options
context:
space:
mode:
Diffstat (limited to 'pkgtools/pkglint/files/pkglint.pl')
-rw-r--r--pkgtools/pkglint/files/pkglint.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index 8fce6ad1ba4..ef754f2ff30 100644
--- a/pkgtools/pkglint/files/pkglint.pl
+++ b/pkgtools/pkglint/files/pkglint.pl
@@ -1,5 +1,5 @@
#! @PERL@
-# $NetBSD: pkglint.pl,v 1.545 2006/03/09 17:34:17 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.546 2006/03/10 22:30:25 rillig Exp $
#
# pkglint - static analyzer and checker for pkgsrc packages
@@ -2529,6 +2529,10 @@ sub checkline_mk_shellword($$$) {
if ($state == SWST_PLAIN && defined($mod) && $mod =~ qr":Q$") {
# Fine.
+ } elsif ($state == SWST_BACKT) {
+ # Don't check here, to avoid false positives
+ # for tool names.
+
} elsif (($state == SWST_SQUOT || $state == SWST_DQUOT) && $varname =~ qr"^(?:.*DIR|.*FILE|.*PATH|.*_VAR|PREFIX|.*BASE|PKGNAME)$") {
# This is ok if we don't allow these
# variables to have embedded [\$\\\"\'\`].