]> git.ipfire.org Git - thirdparty/fcron.git/commitdiff
fixed parsing of @reboot lines
authorThibault Godouet <yo8192@users.noreply.github.com>
Sun, 5 Dec 2021 17:55:42 +0000 (17:55 +0000)
committerThibault Godouet <yo8192@users.noreply.github.com>
Sun, 5 Dec 2021 17:55:42 +0000 (17:55 +0000)
fileconf.c

index 2d53d57b324b559352c727868449ba31f0f96f48..975e3541a1c212ef61de79185da800b766e32413 100644 (file)
@@ -1349,7 +1349,7 @@ read_shortcut(char *ptr, cf_t * cf)
         if (debug_opt)
             fprintf(stderr, "  Shc : @reboot\n");
     }
-    if (strcmp(shortcut, "resume") == 0) {
+    else if (strcmp(shortcut, "resume") == 0) {
         set_freq(cl->cl_option);
         set_runatresume(cl->cl_option);
         set_runonce(cl->cl_option);