Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

mount: also detect if uid or gid are set in same option string: -o uid=123,gid=456

albertony07c40780b3b4
diff --git a/cmd/cmount/mount.go b/cmd/cmount/mount.go
index 9d30599ad..8029fca8a 100644
--- a/cmd/cmount/mount.go
+++ b/cmd/cmount/mount.go
@@ -50,8 +50,11 @@ func mountOptions(VFS *vfs.VFS, device string, mountpoint string, opt *mountlib.
hasExtraOption := func(optionName string) bool {
optionName += "="
for _, option := range opt.ExtraOptions {
- if strings.HasPrefix(option, optionName) {
- return true
+ suboptions := strings.Split(option, ",")
+ for _, suboption := range suboptions {
+ if strings.HasPrefix(suboption, optionName) {
+ return true
+ }
}
}
return false