]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
wdctl: properyl test timeout conditions
authorThomas Weißschuh <thomas@t-8ch.de>
Thu, 28 Dec 2023 19:44:34 +0000 (20:44 +0100)
committerThomas Weißschuh <thomas@t-8ch.de>
Thu, 28 Dec 2023 19:44:34 +0000 (20:44 +0100)
Fixes #2660

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
sys-utils/wdctl.c

index ffecea9e575fc68651a4dff12c853893b22fac2d..86119248aa95f0cd2344508d9b7c9f697a477b50 100644 (file)
@@ -406,7 +406,7 @@ static int set_watchdog(struct wd_control *ctl, struct wd_device *wd)
        assert(wd->devpath);
        assert(ctl);
 
-       if (!ctl->set_timeout && !ctl->set_timeout)
+       if (!ctl->set_timeout && !ctl->set_pretimeout)
                goto sysfs_only;
 
        sigemptyset(&oldsigs);