diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-03-15 00:44:10 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-03-15 00:44:10 +0100 |
commit | 4f4d6a7073e6aa740291bbe54da809024d372955 (patch) | |
tree | ca3896f8e2d72659ee8e0be5890382e7b2caae5a /src/journal/journalctl.c | |
parent | fb0864e7b9c6d26269ccea6ec5c0fd921c029781 (diff) |
journalctl: suppress messages about adm group if ACL support is not enabled
Diffstat (limited to 'src/journal/journalctl.c')
-rw-r--r-- | src/journal/journalctl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c index 5f8b240b00..38c9d73b44 100644 --- a/src/journal/journalctl.c +++ b/src/journal/journalctl.c @@ -210,8 +210,10 @@ int main(int argc, char *argv[]) { goto finish; } +#ifdef HAVE_ACL if (!arg_quiet && geteuid() != 0 && in_group("adm") <= 0) log_warning("Showing user generated messages only. Users in the group 'adm' can see all messages. Pass -q to turn this message off."); +#endif r = sd_journal_open(&j, 0); if (r < 0) { |