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

fuse: Ignore "-o" command
This commit is contained in:
BakerBunker 2022-10-08 13:25:19 -05:00 committed by GitHub
parent 5db25a8f2a
commit b9d8a837af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,7 +47,10 @@ func runFuse(cmd *Command, args []string) bool {
for i++; i < rawArgsLen && rawArgs[i] != ' '; i++ {
option.WriteByte(rawArgs[i])
}
// ignore "-o"
if option.String() != "o" {
options = append(options, parameter{option.String(), "true"})
}
option.Reset()
// equal separator start option with pending value