diff options
author | rillig <rillig@pkgsrc.org> | 2006-07-29 10:56:03 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2006-07-29 10:56:03 +0000 |
commit | cac6ecf98323345541f4ce431f2a905875c66aa4 (patch) | |
tree | 1a824aafaa9bd26a2f4482c7ff49ae03ad8cbc3b /pkgtools | |
parent | 1a4335bbc9d8c0faee6ede013f9e55b28f09b8cc (diff) | |
download | pkgsrc-cac6ecf98323345541f4ce431f2a905875c66aa4.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.pl | 4 |
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"\@$") { |