From 7289c769fb11c8744f213cb56f2b3fdf1168147e Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 8 Aug 2018 15:29:07 +0900 Subject: [PATCH] journal: do not hide options in help message Even if built without gcrypt, show the relevant options in help message. Otherwise, the help message diverges from the man page or suggestions by the shell completion. --- src/journal/journalctl.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c index 56b1be530d..799510504b 100644 --- a/src/journal/journalctl.c +++ b/src/journal/journalctl.c @@ -342,11 +342,9 @@ static void help(void) { " -D --directory=PATH Show journal files from directory\n" " --file=PATH Show journal file\n" " --root=ROOT Operate on files below a root directory\n" -#if HAVE_GCRYPT " --interval=TIME Time interval for changing the FSS sealing key\n" " --verify-key=KEY Specify FSS verification key\n" " --force Override of the FSS key pair with --setup-keys\n" -#endif "\nCommands:\n" " -h --help Show this help text\n" " --version Show package version\n" @@ -365,9 +363,7 @@ static void help(void) { " --dump-catalog Show entries in the message catalog\n" " --update-catalog Update the message catalog database\n" " --new-id128 Generate a new 128-bit ID\n" -#if HAVE_GCRYPT " --setup-keys Generate a new FSS key pair\n" -#endif , program_invocation_short_name); } @@ -741,7 +737,7 @@ static int parse_argv(int argc, char *argv[]) { case ARG_VERIFY_KEY: case ARG_INTERVAL: case ARG_FORCE: - log_error("Forward-secure sealing not available."); + log_error("Compiled without forward-secure sealing support."); return -EOPNOTSUPP; #endif