chiark / gitweb /
sd-journal: return error when we cannot open a file
[elogind.git] / src / journal / sd-journal.c
index 9b57e5945dd385f1863f2b2be449b8f6e9b167dc..9b9e8ac8593e724f597802d3336651b96aa6773d 100644 (file)
@@ -1248,7 +1248,7 @@ static int add_file(sd_journal *j, const char *prefix, const char *filename) {
         r = add_any_file(j, path);
         if (r == -ENOENT)
                 return 0;
-        return 0;
+        return r;
 }
 
 static int remove_file(sd_journal *j, const char *prefix, const char *filename) {