From: Miklos Szeredi Date: Thu, 2 Jul 2009 12:52:27 +0000 (+0000) Subject: * fusermount: Do not silently ignore command line arguments. X-Git-Tag: fuse_2_8_0~4 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=2db5be456f5be2bb6ec97ed71db8b87aa8897527;p=qemu-gpiodev%2Flibfuse.git * fusermount: Do not silently ignore command line arguments. Patch by Sebastian Harl --- diff --git a/ChangeLog b/ChangeLog index bfb83c4..b3ae5cc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -14,6 +14,9 @@ * Kernel interface version is now 7.12 + * fusermount: Do not silently ignore command line arguments. + Patch by Sebastian Harl + 2009-06-19 Miklos Szeredi * Add fuse_getgroups (high level lib) and fuse_req_getgroups (low diff --git a/util/fusermount.c b/util/fusermount.c index 773de36..c3ecc86 100644 --- a/util/fusermount.c +++ b/util/fusermount.c @@ -915,6 +915,10 @@ int main(int argc, char *argv[]) if (optind >= argc) { fprintf(stderr, "%s: missing mountpoint argument\n", progname); exit(1); + } else if (argc > optind + 1) { + fprintf(stderr, "%s: extra arguments after the mountpoint\n", + progname); + exit(1); } origmnt = argv[optind];