aboutsummaryrefslogtreecommitdiff
path: root/pathfs_frontend
diff options
context:
space:
mode:
authorJakob Unterwurzacher2015-09-18 22:22:11 +0200
committerJakob Unterwurzacher2015-09-19 10:46:39 +0200
commitc4ec7a4295da9701d21e2c98bc2816e4a2be8f16 (patch)
treeddffd3ef061064c08be46c3787c19ed6b0ac9299 /pathfs_frontend
parent8fe5ec7381778bbbf90a7ad0e9d1f05cb2d9ac23 (diff)
Fix Chown parameter order
Diffstat (limited to 'pathfs_frontend')
-rw-r--r--pathfs_frontend/fs.go10
1 files changed, 5 insertions, 5 deletions
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)
}