logo

utils-std

Collection of commonly available Unix tools
commit: b7f450b3063afcb8fb6470566e9ac8466ebd0a30
parent 9b58ebce2a60f546ee611ba5463734e2e2a649f5
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri, 26 Jul 2024 10:09:19 +0200

cmd/touch: clear errno after mktime_tz

Diffstat:

Mcmd/touch.c1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/cmd/touch.c b/cmd/touch.c @@ -174,6 +174,7 @@ main(int argc, char *argv[]) target.tv_sec = mktime_tz(&iso_res); target.tv_nsec = nsec; + errno = 0; break; } case ':':