From f461c6e61df2133e55703e176c8bfc67eef05dda Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Thu, 26 May 2011 19:17:10 +0200 Subject: [PATCH] Make checksrc.pl work on more out-of-tree builds Source files given with relative paths do not have the -D directory specifier prepended. --- lib/checksrc.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;