[hackers] [sbase] Correct error-handling in touch(1) || FRIGN

From: <git_AT_suckless.org>
Date: Tue, 24 Mar 2015 23:53:56 +0100 (CET)

commit 14b1db88bf21dfdd68f6f94c076f20fc91f14cd3
Author: FRIGN <dev_AT_frign.de>
Date: Thu Feb 19 18:56:59 2015 +0100

    Correct error-handling in touch(1)

diff --git a/touch.c b/touch.c
index 41ff21c..70adc31 100644
--- a/touch.c
+++ b/touch.c
_AT_@ -86,7 +86,7 @@ parsetime(char *str, time_t current)
         case 20:
                 /* only Zulu-timezone supported */
                 if (str[19] != 'Z')
- goto default;
+ eprintf("Invalid time zone\n");
                 format = "%Y-%m-%dT%H:%M:%S%Z";
                 break;
         default:
Received on Tue Mar 24 2015 - 23:53:56 CET

This archive was generated by hypermail 2.3.0 : Wed Mar 25 2015 - 00:11:01 CET