[hackers] [sbase] State the reason for failure in readlink(1) || sin

From: <git_AT_suckless.org>
Date: Thu, 04 Dec 2014 13:15:05 +0100

commit 88a6d6f97ec184440297a649490cd9e2b2290ff9
Author: sin <sin_AT_2f30.org>
Date: Thu Dec 4 12:14:20 2014 +0000

    State the reason for failure in readlink(1)

diff --git a/readlink.c b/readlink.c
index 10b7160..b70dcbe 100644
--- a/readlink.c
+++ b/readlink.c
_AT_@ -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))
Received on Thu Dec 04 2014 - 13:15:05 CET

This archive was generated by hypermail 2.3.0 : Thu Dec 04 2014 - 13:24:09 CET