chiark / gitweb /
journalctl: various fixes to the access check logic
authorLennart Poettering <lennart@poettering.net>
Sat, 23 Mar 2013 00:12:22 +0000 (01:12 +0100)
committerLennart Poettering <lennart@poettering.net>
Sat, 23 Mar 2013 00:12:22 +0000 (01:12 +0100)
commit3ac251b81a41295a90c89c164f0d72ce6de651aa
treef928d8c5998f2bc23fb58b8db13900e79434c81b
parenta5a5ade34c142c42e584aa19ee92de6d3e1994c3
journalctl: various fixes to the access check logic

- Reword messages a bit

- Correct check whether EACCES is in the set of errors

- Don't complain if no journal files are found

- allocate Set object for errors lazily since in the best case we don't
  need it at all.

- don't consider it an error if /run/log/journal doesn't exist (because
  that's the usual case actually, if storage is enabled)
src/journal/journalctl.c
src/journal/sd-journal.c