* fusermount: Do not silently ignore command line arguments.
authorMiklos Szeredi <miklos@szeredi.hu>
Thu, 2 Jul 2009 12:52:27 +0000 (12:52 +0000)
committerMiklos Szeredi <miklos@szeredi.hu>
Thu, 2 Jul 2009 12:52:27 +0000 (12:52 +0000)
Patch by Sebastian Harl

ChangeLog
util/fusermount.c

index bfb83c4fc0a36bd13bbd74a1865aa40c9b135a5b..b3ae5ccbf01644f8d5c549c2ea34ff9a3cbe5e0a 100644 (file)
--- 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 <miklos@szeredi.hu>
 
        * Add fuse_getgroups (high level lib) and fuse_req_getgroups (low
index 773de36fe019a30846f7b73a754956a58d79a1da..c3ecc86cc448265d20e58cd1be775e39d5307810 100644 (file)
@@ -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];