chiark / gitweb /
path_check_timestamp: only keep the most recent timestamp
[elogind.git] / src / shared / util.c
index 2419a76d9887eb71be3578b66eadc754babbcf33..ef3b67b597594597e0c005fa628565158b493076 100644 (file)
@@ -6004,7 +6004,7 @@ bool restore_state(void) {
         r = read_one_line_file("/proc/cmdline", &line);
         if (r < 0) {
                 log_warning("Failed to read /proc/cmdline, ignoring: %s", strerror(-r));
-                return 0;
+                return true; /* something is very wrong, let's not make it worse */
         }
 
         FOREACH_WORD_QUOTED(w, l, line, state)