From 14b1db88bf21dfdd68f6f94c076f20fc91f14cd3 Mon Sep 17 00:00:00 2001 From: FRIGN Date: Thu, 19 Feb 2015 18:56:59 +0100 Subject: [PATCH] Correct error-handling in touch(1) --- touch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/touch.c b/touch.c index 41ff21c..70adc31 100644 --- 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: