logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git/
commit: dc34ba2caa8e2ac4876f0b609560a3220a7dc4e7
parent 6b371eba139b422db8147c61eb01f835fefe2dff
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Tue,  6 May 2025 02:24:32 +0200

cmd/touch: properly check -t second separator location

Diffstat:

Mcmd/touch.c2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmd/touch.c b/cmd/touch.c @@ -42,7 +42,7 @@ opt_t_parse(char *arg, const char **errstr) char *secs = strrchr(arg, '.'); if(secs != NULL) { - if(arg[len - 3] != '.') + if(&arg[len - 3] != secs) { *errstr = "Wrong location of second separator"; return res;