From b9d8a837afee80d000a8e6d075f4b2a363b90778 Mon Sep 17 00:00:00 2001 From: BakerBunker <17872844+BakerBunker@users.noreply.github.com> Date: Sat, 8 Oct 2022 13:25:19 -0500 Subject: [PATCH] Fix `mount -t weed` with extra options (#3807) fuse: Ignore "-o" command --- weed/command/fuse.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/weed/command/fuse.go b/weed/command/fuse.go index cf088022c..5beeb3b1f 100644 --- a/weed/command/fuse.go +++ b/weed/command/fuse.go @@ -47,7 +47,10 @@ func runFuse(cmd *Command, args []string) bool { for i++; i < rawArgsLen && rawArgs[i] != ' '; i++ { option.WriteByte(rawArgs[i]) } - options = append(options, parameter{option.String(), "true"}) + // ignore "-o" + if option.String() != "o" { + options = append(options, parameter{option.String(), "true"}) + } option.Reset() // equal separator start option with pending value