Skip to content

Commit

Permalink
Merge pull request #6 from perlpunk/master
Browse files Browse the repository at this point in the history
realpath has to be applied to both local_lib and filename
  • Loading branch information
xaicron committed Apr 21, 2022
2 parents 4efa93d + 72931c4 commit 5f7e893
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/App/pmuninstall.pm
Expand Up @@ -310,6 +310,7 @@ sub is_local_lib {

my $local_lib_base = quotemeta File::Spec->catfile(Cwd::realpath($self->{local_lib}));
$file = File::Spec->catfile($file);
$file = Cwd::realpath($file);

return $file =~ /^$local_lib_base/ ? 1 : 0;
}
Expand Down

0 comments on commit 5f7e893

Please sign in to comment.