Closed dolmen closed 7 years ago
@dolmen Thanks for this! I like the spirit of this patch, but since the error handler is called from File::Next
, there's no guarantee that $!
will have the correct error in it when the error handler is called. I have an open issue for that here: https://github.com/petdance/file-next/issues/20
I've rebased this patch on top of branch dev
. Please merge this soon. I'm suffering from this issue for 2.5 years now.
This will go out in 2.17_01.
Fix for #485. Instead of checking the string system error message
permission denied
(which maybe localized, so the match fails on non-English locales), check$!
by comparing it toErrno::EACCES
.