Opened 8 years ago
Closed 8 years ago
#1386 closed defect (fixed)
file-read-access? returns #f for non-existent files
| Reported by: | Vasilij Schneidermann | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 5.0 |
| Component: | core libraries | Version: | 4.12.0 |
| Keywords: | posix | Cc: | |
| Estimated difficulty: | easy |
Description
As seen on IRC:
<Seylerius> Hrm. Isn't
file-read-access?supposed to error out on a nonexistent file?
Expected outcome:
(file-read-access? "/con/con") ;=> <file error>
Actual outcome:
(file-read-access? "/con/con") ;=> #f
I've worked out a patch with the help of TheLemonMan? on IRC.
Attachments (2)
Change History (5)
Changed 8 years ago by
| Attachment: | 0001-Handle-other-errors-than-EACCES-for-access-3.patch added |
|---|
comment:1 Changed 8 years ago by
comment:2 Changed 8 years ago by
| Milestone: | someday → 5.0 |
|---|
I've changed my mind and reworked the patch for C5.
Changed 8 years ago by
| Attachment: | 0001-Handle-other-errors-than-EACCES-for-access-3.2.patch added |
|---|
comment:3 Changed 8 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Fixed by 536e2351cf5836e76df79395813501fcb2c4b034
Note: See
TracTickets for help on using
tickets.

The patch and the intended behaviour looks correct. But this would be a Change Request, I suppose.