From c4ec7a4295da9701d21e2c98bc2816e4a2be8f16 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Fri, 18 Sep 2015 22:22:11 +0200 Subject: Fix Chown parameter order --- pathfs_frontend/fs.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'pathfs_frontend/fs.go') diff --git a/pathfs_frontend/fs.go b/pathfs_frontend/fs.go index 2ae066f..247b69e 100644 --- a/pathfs_frontend/fs.go +++ b/pathfs_frontend/fs.go @@ -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) } -- cgit v1.2.3