mount: Fix typo in argument checking

This commit is contained in:
Patrick Wang 2019-08-16 03:05:54 +08:00 committed by Nick Craig-Wood
parent 27a9d0f570
commit badc8b3293

View File

@ -70,7 +70,7 @@ func mountOptions(device string) (options []fuse.MountOption) {
if len(mountlib.ExtraOptions) > 0 {
fs.Errorf(nil, "-o/--option not supported with this FUSE backend")
}
if len(mountlib.ExtraOptions) > 0 {
if len(mountlib.ExtraFlags) > 0 {
fs.Errorf(nil, "--fuse-flag not supported with this FUSE backend")
}
return options