aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlib/checksrc.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/checksrc.pl b/lib/checksrc.pl
index c1056d26c..99bbc74d0 100755
--- a/lib/checksrc.pl
+++ b/lib/checksrc.pl
@@ -79,9 +79,10 @@ if(!$file) {
}
do {
-
if($file ne "$wlist") {
- scanfile("$dir/$file");
+ my $fullname = $file;
+ $fullname = "$dir/$file" if $fullname !~ '^/';
+ scanfile($fullname);
}
$file = shift @ARGV;