commit 14b1db88bf21dfdd68f6f94c076f20fc91f14cd3
parent b00a00703f3b8d77b3cbfcabd0c7d762e6c8133a
Author: FRIGN <dev@frign.de>
Date: Thu, 19 Feb 2015 18:56:59 +0100
Correct error-handling in touch(1)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/touch.c b/touch.c
@@ -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: