State the reason for failure in readlink(1)
This commit is contained in:
parent
761599ae61
commit
88a6d6f97e
@ -40,7 +40,7 @@ main(int argc, char *argv[])
|
|||||||
usage();
|
usage();
|
||||||
|
|
||||||
if (strlen(argv[0]) > PATH_MAX - 1)
|
if (strlen(argv[0]) > PATH_MAX - 1)
|
||||||
return 1;
|
eprintf("path too long\n");
|
||||||
|
|
||||||
if (fflag) {
|
if (fflag) {
|
||||||
if (!realpath(argv[0], buf))
|
if (!realpath(argv[0], buf))
|
||||||
|
Loading…
Reference in New Issue
Block a user