When the state restore is disabled, we would print:
"Unknown verb: load" instead of simply skipping loading the
state.
- if (streq(argv[1], "load") && shall_restore_state()) {
+ if (streq(argv[1], "load")) {
_cleanup_free_ char *value = NULL;
_cleanup_free_ char *value = NULL;
+ if (!shall_restore_state())
+ return EXIT_SUCCESS;
+
r = read_one_line_file(saved, &value);
if (r < 0) {
r = read_one_line_file(saved, &value);
if (r < 0) {