Browse Source

Fix `mount -t weed` with extra options (#3807)

fuse: Ignore "-o" command
pull/3813/head
BakerBunker 2 years ago
committed by GitHub
parent
commit
b9d8a837af
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      weed/command/fuse.go

5
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

Loading…
Cancel
Save