From 586e066897c03fc4084d6ad0eaa8d77128e48f8c Mon Sep 17 00:00:00 2001 From: danielflira Date: Fri, 2 Jul 2021 16:52:52 -0300 Subject: [PATCH] fix weed fuse parameters parsing --- weed/command/fuse.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weed/command/fuse.go b/weed/command/fuse.go index ac306876a..f2534e853 100644 --- a/weed/command/fuse.go +++ b/weed/command/fuse.go @@ -55,14 +55,14 @@ func runFuse(cmd *Command, args []string) bool { name := option.String() option.Reset() - for i++; i < rawArgsLen && rawArgs[i] != ','; i++ { + for i++; i < rawArgsLen && rawArgs[i] != ',' && rawArgs[i] != ' '; i++ { // double quote separator read option until next double quote if rawArgs[i] == '"' { for i++; i < rawArgsLen && rawArgs[i] != '"'; i++ { option.WriteByte(rawArgs[i]) } - // single quote separator read option until next single quote + // single quote separator read option until next single quote } else if rawArgs[i] == '\'' { for i++; i < rawArgsLen && rawArgs[i] != '\''; i++ { option.WriteByte(rawArgs[i])