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

View File

@ -40,7 +40,7 @@ main(int argc, char *argv[])
usage();
if (strlen(argv[0]) > PATH_MAX - 1)
return 1;
eprintf("path too long\n");
if (fflag) {
if (!realpath(argv[0], buf))