Fix Chown parameter order

This commit is contained in:
Jakob Unterwurzacher 2015-09-18 22:22:11 +02:00
parent 8fe5ec7381
commit c4ec7a4295

View File

@ -112,7 +112,11 @@ func (fs *FS) Chmod(path string, mode uint32, context *fuse.Context) (code fuse.
}
func (fs *FS) Chown(path string, uid uint32, gid uint32, context *fuse.Context) (code fuse.Status) {
return fs.FileSystem.Chmod(fs.EncryptPath(path), gid, context)
return fs.FileSystem.Chown(fs.EncryptPath(path), uid, gid, context)
}
func (fs *FS) Mknod(name string, mode uint32, dev uint32, context *fuse.Context) (code fuse.Status) {
return fs.FileSystem.Mknod(fs.EncryptPath(name), mode, dev, context)
}
func (fs *FS) Truncate(path string, offset uint64, context *fuse.Context) (code fuse.Status) {
@ -136,10 +140,6 @@ func (fs *FS) Readlink(name string, context *fuse.Context) (out string, status f
return dstPlain, status
}
func (fs *FS) Mknod(name string, mode uint32, dev uint32, context *fuse.Context) (code fuse.Status) {
return fs.FileSystem.Mknod(fs.EncryptPath(name), mode, dev, context)
}
func (fs *FS) Mkdir(path string, mode uint32, context *fuse.Context) (code fuse.Status) {
return fs.FileSystem.Mkdir(fs.EncryptPath(path), mode, context)
}