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:
parent
05c1853093
commit
7b300be75e
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user