chiark / gitweb /
journalctl: add a missing 'break'
[elogind.git] / src / journal / journalctl.c
index 5f8b240b001f2d8e7742657457f315e2d983be02..089086eb9818ca5d6917a38ec92d87d5272b3f3e 100644 (file)
@@ -148,6 +148,7 @@ static int parse_argv(int argc, char *argv[]) {
 
                 case 'q':
                         arg_quiet = true;
+                        break;
 
                 case '?':
                         return -EINVAL;
@@ -210,8 +211,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) {