On Mon, Apr 20, 2015 at 6:39 PM, Jean-Claude Beaudoin <jean.claude.beaudoin@gmail.com> wrote:
On Mon, Apr 20, 2015 at 4:13 PM, Tomas Hlavaty <tom@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