| commit | c4791fa52a41d7eb7ee29d7fa57ca8fb4fe558a3 | [log] [tgz] |
|---|---|---|
| author | rsc <devnull@localhost> | Sat Oct 29 17:41:06 2005 +0000 |
| committer | rsc <devnull@localhost> | Sat Oct 29 17:41:06 2005 +0000 |
| tree | 9bce2c89fd60485d4cc8554be802c86e5bafa99e | |
| parent | ae3265db67077540c53416ff1fafd3f19e0edd7b [diff] |
print correct file name
diff --git a/src/lib9/truerand.c b/src/lib9/truerand.c index b3c343e..03f3dce 100644 --- a/src/lib9/truerand.c +++ b/src/lib9/truerand.c
@@ -15,7 +15,7 @@ if(randfd < 0 || read(randfd, buf, 1) != 1) randfd = open(randfile="/dev/srandom", OREAD); /* OpenBSD */ if(randfd < 0) - sysfatal("can't open /dev/random: %r"); + sysfatal("can't open %s: %r", randfile); fcntl(randfd, F_SETFD, FD_CLOEXEC); } for(i=0; i<sizeof(buf); i += n)