State the reason for failure in readlink(1)

This commit is contained in:
sin 2014-12-04 12:14:20 +00:00
parent 761599ae61
commit 88a6d6f97e
1 changed files with 1 additions and 1 deletions

View File

@ -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))