Opened 3 weeks ago

Last modified 2 weeks ago

#1386 new defect

file-read-access? returns #f for non-existent files

Reported by: wasamasa Owned by:
Priority: minor Milestone: someday
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 (1)

0001-Handle-other-errors-than-EACCES-for-access-3.patch (1.2 KB) - added by wasamasa 3 weeks ago.

Download all attachments as: .zip

Change History (2)

comment:1 Changed 2 weeks ago by felix

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

Note: See TracTickets for help on using tickets.