Adjust a perror() to print the actual target of the error.
This commit is contained in:
parent
e4661cdb21
commit
564adf2abc
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user