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

From: <git_AT_suckless.org>
Date: Thu, 19 Feb 2015 19:00:50 +0100 (CET)

commit 350522205ad8aacf7cb38e29f98a2f8f44c44bca
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 Thu Feb 19 2015 - 19:00:50 CET

This archive was generated by hypermail 2.3.0 : Thu Feb 19 2015 - 19:12:09 CET