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
Activity
Charles Oliver Nutter
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Fix Version/s | JRuby 1.6.5 [ 17622 ] |
Charles Oliver Nutter
made changes -
| Fix Version/s | JRuby 1.6.6 [ 18033 ] | |
| Fix Version/s | JRuby 1.6.5 [ 17622 ] |
Charles Oliver Nutter
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
Charles Oliver Nutter
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |
Sam
made changes -
| Resolution | Fixed [ 1 ] | |
| Status | Closed [ 6 ] | Reopened [ 4 ] |
Charles Oliver Nutter
made changes -
| Component/s | HelpWanted [ 14060 ] |
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.