]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/journal-util.c
journalctl: move access_check() to shared/
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 26 Feb 2017 23:00:39 +0000 (18:00 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 1 Mar 2017 02:37:35 +0000 (21:37 -0500)
commit4f37cbd91164f8cd7dbc90e3b3594697fec50f38
treedba4e1b407e448d7630ddd85d38828c005241e99
parent7d8e7c0e195ad014190b0eff2663b1e3a69ad328
journalctl: move access_check() to shared/

The only functional change is that log_notice("No journal files were found.")
is not printed any more with --quiet. log_error("No journal files were opened
due to insufficient permissions.") is still printed.

I wasn't quite sure where to put this function, but shared/ seems to be the
right place and none of the existing files seem to fit too well.

v2: rename journal_access_check to journal_access_check_and_warn.
Makefile.am
src/journal/journalctl.c
src/shared/journal-util.c [new file with mode: 0644]
src/shared/journal-util.h [new file with mode: 0644]