diff --git a/lib/checksrc.pl b/lib/checksrc.pl index 019406b37c..5d369496a1 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;