From 0c856e838792c22476d87ba6e8a03f85d8cf71b5 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Mon, 18 May 2020 10:07:12 -0700 Subject: [PATCH] avoid possible wrong arguments fix https://github.com/chrislusf/seaweedfs/issues/1320 --- weed/command/mount_std.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/weed/command/mount_std.go b/weed/command/mount_std.go index 2dc9aa196..550921188 100644 --- a/weed/command/mount_std.go +++ b/weed/command/mount_std.go @@ -34,6 +34,10 @@ func runMount(cmd *Command, args []string) bool { return false } + if len(args)>0 { + return false + } + return RunMount(&mountOptions, os.FileMode(umask)) }