| tprint correct file name - plan9port - [fork] Plan 9 from user space | |
| git clone git://src.adamsgaard.dk/plan9port | |
| Log | |
| Files | |
| Refs | |
| README | |
| LICENSE | |
| --- | |
| commit c4791fa52a41d7eb7ee29d7fa57ca8fb4fe558a3 | |
| parent ae3265db67077540c53416ff1fafd3f19e0edd7b | |
| Author: rsc <devnull@localhost> | |
| Date: Sat, 29 Oct 2005 17:41:06 +0000 | |
| print correct file name | |
| Diffstat: | |
| M src/lib9/truerand.c | 2 +- | |
| 1 file changed, 1 insertion(+), 1 deletion(-) | |
| --- | |
| diff --git a/src/lib9/truerand.c b/src/lib9/truerand.c | |
| t@@ -15,7 +15,7 @@ truerand(void) | |
| if(randfd < 0 || read(randfd, buf, 1) != 1) | |
| randfd = open(randfile="/dev/srandom", OREAD); … | |
| 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) |