Thanks for the bug report.

* Laurent Bonnaud <laurent.bonn...@inpg.fr>, 2013-05-23, 16:11:
# adequate --all
Use of uninitialized value $realpath in pattern match (m//) at 
/usr/bin/adequate line 454.
Use of uninitialized value $realdir in hash element at /usr/bin/adequate line 
458.
Use of uninitialized value $realpath in pattern match (m//) at 
/usr/bin/adequate line 454.
Use of uninitialized value $realdir in hash element at /usr/bin/adequate line 
458.

Could you try again with the attached patch? It won't fix the problem, but should shed me light on what the problem is.

--
Jakub Wilk
diff --git a/adequate b/adequate
--- a/adequate
+++ b/adequate
@@ -450,7 +450,7 @@
             next file if $path =~ m{^/lib\d*/.*(?<=/)ld(?:-.+)[.]so(?:$|[.])}; # dynamic linker
             next file unless defined $interesting_dirs{$dir};
             if (-l $path) {
-                my $realpath = Cwd::realpath($path);
+                my $realpath = Cwd::realpath($path) // die "resolving $path failed: $!";
                 my ($realdir) = $realpath =~ m{(.*)/[^/]+$};
                 # If the symlink target is still in an “interesting” directory,
                 # then any issue hopefully will be reported against another

Reply via email to