chiark / gitweb /
journald: don't complain if fss key does not exist
authorLennart Poettering <lennart@poettering.net>
Mon, 10 Sep 2012 11:18:22 +0000 (13:18 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 10 Sep 2012 11:18:22 +0000 (13:18 +0200)
src/journal/journal-authenticate.c

index 586daf3..593bf7e 100644 (file)
@@ -328,7 +328,9 @@ int journal_file_fss_load(JournalFile *f) {
 
         fd = open(p, O_RDWR|O_CLOEXEC|O_NOCTTY, 0600);
         if (fd < 0) {
-                log_error("Failed to open %s: %m", p);
+                if (errno != ENOENT)
+                        log_error("Failed to open %s: %m", p);
+
                 r = -errno;
                 goto finish;
         }