diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-07-22 10:43:19 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-07-22 10:43:19 +0200 |
commit | 22d6bea8820612e6a1483d8b6cfd820f1417ae6b (patch) | |
tree | 1fa2da82c0179251fbea5b65d2d82987af601169 | |
parent | a505166845f9806ac87389821474b6aa16cd0d9d (diff) | |
download | systemd-22d6bea8820612e6a1483d8b6cfd820f1417ae6b.tar.gz |
pstore: refuse to run if arguments are specified
(This is why the --help chech passed.)
-rw-r--r-- | src/pstore/pstore.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pstore/pstore.c b/src/pstore/pstore.c index 0c4e2f08a3..60519e117e 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(); |