aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlib/checksrc.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/checksrc.pl b/lib/checksrc.pl
index 019406b37..5d369496a 100755
--- a/lib/checksrc.pl
+++ b/lib/checksrc.pl
@@ -81,7 +81,7 @@ if(!$file) {
do {
if($file ne "$wlist") {
my $fullname = $file;
- $fullname = "$dir/$file" if $fullname !~ '^/';
+ $fullname = "$dir/$file" if ($fullname !~ '^\.?\.?/');
scanfile($fullname);
}
$file = shift @ARGV;