chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb0864e
)
journalctl: suppress messages about adm group if ACL support is not enabled
author
Lennart Poettering
<lennart@poettering.net>
Wed, 14 Mar 2012 23:44:10 +0000
(
00:44
+0100)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 14 Mar 2012 23:44:10 +0000
(
00:44
+0100)
src/journal/journalctl.c
patch
|
blob
|
history
diff --git
a/src/journal/journalctl.c
b/src/journal/journalctl.c
index 5f8b240b001f2d8e7742657457f315e2d983be02..38c9d73b441f0560a7a59947cdab9c4e18431e65 100644
(file)
--- 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) {