Details
-
Type:
Bug
-
Status:
Reopened
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: JRuby 1.6.2
-
Fix Version/s: JRuby 1.6.6
-
Component/s: HelpWanted, Standard Library
-
Labels:None
-
Environment:Linux
-
Number of attachments :
Description
File.lstat on entries in a directory with no executable perm for the user will incorrectly raise Errno::ENOENT instead of Errno::EACCES
Weirdly enough, we explicitly raise ENOENT for all stat/lstat return values < 0. Easy fix: don't raise anything from lstat and just return the value; consumers can then handle errno properly.