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

cmd/mount2: fix the swapped UID / GID values

Russell Cattelanb14a58c9b863
diff --git a/cmd/mount2/fs.go b/cmd/mount2/fs.go
index 00e97e8a3..0fdd0c811 100644
--- a/cmd/mount2/fs.go
+++ b/cmd/mount2/fs.go
@@ -67,8 +67,8 @@ func setAttr(node vfs.Node, attr *fuse.Attr) {
modTime := node.ModTime()
// set attributes
vfs := node.VFS()
- attr.Owner.Gid = vfs.Opt.UID
- attr.Owner.Uid = vfs.Opt.GID
+ attr.Owner.Gid = vfs.Opt.GID
+ attr.Owner.Uid = vfs.Opt.UID
attr.Mode = getMode(node)
attr.Size = Size
attr.Nlink = 1