Cannot open file "/dev/urandom" OS Explanation: (errno == 0) Success

Jean-Claude Beaudoin jean.claude.beaudoin at gmail.com
Wed Apr 22 08:10:57 UTC 2015


On Mon, Apr 20, 2015 at 6:39 PM, Jean-Claude Beaudoin <
jean.claude.beaudoin at gmail.com> wrote:

> On Mon, Apr 20, 2015 at 4:13 PM, Tomas Hlavaty <tom at logand.com> wrote:
>
>> Hi Jean-Claude,
>>
>> it is not possible to open /dev/urandom:
>>
>>    (with-open-file (s "/dev/urandom" :element-type '(unsigned-byte 8))
>>      (read-byte s))
>>
>>    Filesystem error with pathname: "/dev/urandom".
>>    Cannot open file
>>    OS Explanation: (errno == 0) Success
>>       [Condition of type SI:OS-FILE-ERROR]
>>
>> but this works:
>>
>>    (with-open-file (s "/etc/passwd" :element-type '(unsigned-byte 8))
>>      (read-byte s))
>>
>>
> Yep! It is a bug!
>
> Working on a fix...
>
>
This fix is now in github repo master head.

#'cl:probe-file was too selective in its file type tastes...

Thank you for pointing it.

JCB
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/mkcl-devel/attachments/20150422/71975d5e/attachment.html>


More information about the mkcl-devel mailing list