]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - sys-utils/umount.c
umount: be more strict about --all
[thirdparty/util-linux.git] / sys-utils / umount.c
index e3734b0ec20cd7b16adaf5c36bcc81a500e122d4..397e0ebfc5df554b9471969a7fab967d2b29548c 100644 (file)
@@ -573,6 +573,10 @@ int main(int argc, char **argv)
        argv += optind;
 
        if (all) {
+               if (argc) {
+                       warnx(_("unexpected number of arguments"));
+                       errtryhelp(MNT_EX_USAGE);
+               }
                if (!types)
                        types = "noproc,nodevfs,nodevpts,nosysfs,norpc_pipefs,nonfsd,noselinuxfs";