1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-27 01:55:22 +03:00

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.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2015-03-08 11:11:50 -04:00
parent 05c1853093
commit 7b300be75e

View 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) {