Adjust a perror() to print the actual target of the error.

This commit is contained in:
jkh 1995-12-01 10:36:12 +00:00
parent e4661cdb21
commit 564adf2abc

View File

@ -53,7 +53,7 @@ main(int argc, char *argv[])
fd = open("/dev/random", O_RDONLY, 0);
if (fd == -1) {
perror(argv[0]);
perror("/dev/random");
return (1);
}
else {