Browse Source
Fix `mount -t weed` with extra options (#3807)
fuse: Ignore "-o" command
pull/3813/head
BakerBunker
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
1 deletions
-
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
|
|
|
|