From: Zbigniew Jędrzejewski-Szmek Date: Sun, 8 Mar 2015 15:11:50 +0000 (-0400) Subject: sd-journal: return error when we cannot open a file X-Git-Tag: v219.0~465 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=7b300be75e6d5755778dd7da63e7147866f21351;p=elogind.git sd-journal: return error when we cannot open a file Lack of this caused journalctl not to display a hint about missing groups properly when the user lacks permissions. --- diff --git a/src/journal/sd-journal.c b/src/journal/sd-journal.c index 9b57e5945..9b9e8ac85 100644 --- a/src/journal/sd-journal.c +++ b/src/journal/sd-journal.c @@ -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) {