aboutsummaryrefslogtreecommitdiff
path: root/bin/gensquashfs
diff options
context:
space:
mode:
Diffstat (limited to 'bin/gensquashfs')
-rw-r--r--bin/gensquashfs/options.c5
1 files changed, 5 insertions, 0 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);