aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/gensquashfs/options.c5
-rw-r--r--bin/tar2sqfs.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/bin/gensquashfs/options.c b/bin/gensquashfs/options.c
index 348ebba..b432a46 100644
--- a/bin/gensquashfs/options.c
+++ b/bin/gensquashfs/options.c
@@ -311,6 +311,11 @@ void process_command_line(options_t *opt, int argc, char **argv)
}
opt->cfg.filename = argv[optind++];
+
+ if (optind < argc) {
+ fputs("Unknown extra arguments specified.\n", stderr);
+ goto fail_arg;
+ }
return;
fail_arg:
fputs("Try `gensquashfs --help' for more information.\n", stderr);
diff --git a/bin/tar2sqfs.c b/bin/tar2sqfs.c
index 6025dc9..bdd36e1 100644
--- a/bin/tar2sqfs.c
+++ b/bin/tar2sqfs.c
@@ -239,7 +239,7 @@ static void process_args(int argc, char **argv)
cfg.filename = argv[optind++];
if (optind < argc) {
- fputs("Unknown extra arguments\n", stderr);
+ fputs("Unknown extra arguments specified.\n", stderr);
goto fail_arg;
}
return;