diff options
author | Sebastian Lackner | 2017-11-29 12:54:34 +0100 |
---|---|---|
committer | Sebastian Lackner | 2017-11-29 12:55:41 +0100 |
commit | 0162392a28b75ccb6c3b26c26f2a83b5973a2d92 (patch) | |
tree | fe34b074fc11a2a9d73e88cc324e7cfd35b60b6c /internal/syscallcompat/sys_linux.go | |
parent | 0f44c617d01f3e203933459be5fb64c1904d40b6 (diff) |
fusefrontend: Use Fchmodat to implement Chmod
Diffstat (limited to 'internal/syscallcompat/sys_linux.go')
-rw-r--r-- | internal/syscallcompat/sys_linux.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/syscallcompat/sys_linux.go b/internal/syscallcompat/sys_linux.go index 0e9d6ac..4fe44fd 100644 --- a/internal/syscallcompat/sys_linux.go +++ b/internal/syscallcompat/sys_linux.go @@ -80,6 +80,11 @@ func Dup3(oldfd int, newfd int, flags int) (err error) { return syscall.Dup3(oldfd, newfd, flags) } +// Fchmodat syscall. +func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { + return syscall.Fchmodat(dirfd, path, mode, flags) +} + // Fchownat syscall. func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { return syscall.Fchownat(dirfd, path, uid, gid, flags) |