summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys-utils/umount.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys-utils/umount.c b/sys-utils/umount.c
index e3734b0ec..397e0ebfc 100644
--- a/sys-utils/umount.c
+++ b/sys-utils/umount.c
@@ -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";