Created attachment 396162 [details, diff] Handle unreadable links correctly in read_a_link() After upgrading to Perl 5.20, running stow produces the following warning:- Possible precedence issue with control flow operator at /usr/lib64/perl5/5.20.1/Stow.pm line 1736. The offending code is as follows: return readlink $path or error("Could not read link: $path"); The intention is to raise a fatal error if $path cannot be resolved. What happens instead is that undef is returned, with error() never being called. The attached patch fixes this bug.
There was an upstream commit that fixes it in the same way. https://github.com/aspiers/stow/commit/d788ce0
Created attachment 398194 [details] Fixed ebuild + patch I've adapted upstream's development patch to cleanly apply to the latest released source-code. The new ebuild bumps the revision number to -r2.
Commited, thanks.
Thanks, Maxim. Can this be put out for stable keywording?