From: Zbigniew Jędrzejewski-Szmek Date: Mon, 22 Jul 2019 08:43:19 +0000 (+0200) Subject: pstore: refuse to run if arguments are specified X-Git-Tag: v243~191^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=22d6bea8820612e6a1483d8b6cfd820f1417ae6b;p=platform%2Fupstream%2Fsystemd.git pstore: refuse to run if arguments are specified (This is why the --help chech passed.) --- diff --git a/src/pstore/pstore.c b/src/pstore/pstore.c index 0c4e2f0..60519e1 100644 --- a/src/pstore/pstore.c +++ b/src/pstore/pstore.c @@ -361,6 +361,10 @@ static int run(int argc, char *argv[]) { log_open(); + if (argc > 1) + return log_error_errno(SYNTHETIC_ERRNO(EINVAL), + "This program takes no arguments."); + /* Ignore all parse errors */ (void) parse_config();