summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-03-08 11:11:50 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-03-08 11:11:50 -0400
commit7b300be75e6d5755778dd7da63e7147866f21351 (patch)
treef36f108b509ae9cb88eb1ea8f6cba6dfce840cf5 /src
parent05c1853093d8c4e4aa16876b5129b65dac5abd01 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/journal/sd-journal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/sd-journal.c b/src/journal/sd-journal.c
index 9b57e5945d..9b9e8ac859 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) {