summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorrillig <rillig>2006-07-29 10:56:03 +0000
committerrillig <rillig>2006-07-29 10:56:03 +0000
commit31111726f1bfbc3802b17b909e16cf9e782dfeaa (patch)
tree1a824aafaa9bd26a2f4482c7ff49ae03ad8cbc3b /pkgtools
parent665d67e3301d3f007a2398e832657fdc0ebaa9d2 (diff)
downloadpkgsrc-31111726f1bfbc3802b17b909e16cf9e782dfeaa.tar.gz
Since dots are common in pathnames, include them when looking for
absolute pathnames.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkglint/files/pkglint.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index 8234e7f5f14..083350739fa 100644
--- a/pkgtools/pkglint/files/pkglint.pl
+++ b/pkgtools/pkglint/files/pkglint.pl
@@ -1,5 +1,5 @@
#! @PERL@
-# $NetBSD: pkglint.pl,v 1.666 2006/07/29 09:13:59 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.667 2006/07/29 10:56:03 rillig Exp $
#
# pkglint - static analyzer and checker for pkgsrc packages
@@ -3632,7 +3632,7 @@ sub checkline_other_absolute_pathname($$) {
$opt_debug_trace and $line->log_debug("checkline_other_absolute_pathname(\"${text}\")");
- if ($text =~ qr"^(.*?)((?:/[\w]+)*/(?:bin|dev|etc|home|lib|mnt|opt|proc|sbin|tmp|usr|var)\b[\w./\-]*)(.*)$") {
+ if ($text =~ qr"^(.*?)((?:/[\w.]+)*/(?:bin|dev|etc|home|lib|mnt|opt|proc|sbin|tmp|usr|var)\b[\w./\-]*)(.*)$") {
my ($before, $path, $after) = ($1, $2, $3);
if ($before =~ qr"\@$") {