summaryrefslogtreecommitdiff
path: root/src/journal
diff options
context:
space:
mode:
authorLekensteyn <lekensteyn@gmail.com>2012-11-15 12:17:03 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2012-11-15 16:09:02 +0100
commit71c015969233c21ea38b1e63993d02fe171df672 (patch)
treeeb61470238a99ec6163d94ee0297e6f82c110257 /src/journal
parent2480f0c6774daa062106f9c209d255f59c6a6c58 (diff)
journalctl: require argument for --priority
This fixes a segfault due to a missing value for --priority. -p is unaffected because it is specified in the getopt_long parameter list.
Diffstat (limited to 'src/journal')
-rw-r--r--src/journal/journalctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c
index cccd8a7692..011a11b70b 100644
--- a/src/journal/journalctl.c
+++ b/src/journal/journalctl.c
@@ -157,7 +157,7 @@ static int parse_argv(int argc, char *argv[]) {
{ "this-boot", no_argument, NULL, 'b' },
{ "directory", required_argument, NULL, 'D' },
{ "header", no_argument, NULL, ARG_HEADER },
- { "priority", no_argument, NULL, 'p' },
+ { "priority", required_argument, NULL, 'p' },
{ "setup-keys", no_argument, NULL, ARG_SETUP_KEYS },
{ "interval", required_argument, NULL, ARG_INTERVAL },
{ "verify", no_argument, NULL, ARG_VERIFY },