From 71c015969233c21ea38b1e63993d02fe171df672 Mon Sep 17 00:00:00 2001 From: Lekensteyn Date: Thu, 15 Nov 2012 12:17:03 +0100 Subject: [PATCH] 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. --- src/journal/journalctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: systemd-195/src/journal/journalctl.c =================================================================== --- systemd-195.orig/src/journal/journalctl.c +++ systemd-195/src/journal/journalctl.c @@ -158,7 +158,7 @@ static int parse_argv(int argc, char *ar { "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 },