diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-05-18 10:07:12 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-05-18 10:07:12 -0700 |
| commit | 0c856e838792c22476d87ba6e8a03f85d8cf71b5 (patch) | |
| tree | 291e33886928bd250e6d02651da1b1474ba48263 | |
| parent | 2bfd810912b5c0967f30abf6ebacd8f8afa314aa (diff) | |
| download | seaweedfs-0c856e838792c22476d87ba6e8a03f85d8cf71b5.tar.xz seaweedfs-0c856e838792c22476d87ba6e8a03f85d8cf71b5.zip | |
avoid possible wrong arguments
fix https://github.com/chrislusf/seaweedfs/issues/1320
| -rw-r--r-- | weed/command/mount_std.go | 4 |
1 files changed, 4 insertions, 0 deletions
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)) } |
