mirror of
git://git.suckless.org/sbase
synced 2025-01-11 09:59:28 +00:00
Correct error-handling in touch(1)
This commit is contained in:
parent
b00a00703f
commit
14b1db88bf
2
touch.c
2
touch.c
@ -86,7 +86,7 @@ parsetime(char *str, time_t current)
|
|||||||
case 20:
|
case 20:
|
||||||
/* only Zulu-timezone supported */
|
/* only Zulu-timezone supported */
|
||||||
if (str[19] != 'Z')
|
if (str[19] != 'Z')
|
||||||
goto default;
|
eprintf("Invalid time zone\n");
|
||||||
format = "%Y-%m-%dT%H:%M:%S%Z";
|
format = "%Y-%m-%dT%H:%M:%S%Z";
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user