logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git/
commit: 8599eb816036c79b55dda8c06a13ea4ee75c160f
parent d591630ffa1697e170790902df8bd17bd86e3d59
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed, 11 Dec 2024 21:30:04 +0100

cmd/timeout: fix parsing -k

Diffstat:

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

diff --git a/cmd/timeout.c b/cmd/timeout.c @@ -70,7 +70,7 @@ main(int argc, char *argv[]) kill_child = false; break; case 'k': - if(strtodur(argv[0], &time_kill) < 0) return 1; + if(strtodur(optarg, &time_kill) < 0) return 1; if(time_kill.tv_sec == 0 && time_kill.tv_nsec == 0) {