diff options
author | Sebastian Lackner | 2019-01-14 02:49:11 +0100 |
---|---|---|
committer | rfjakob | 2019-01-14 21:27:28 +0100 |
commit | 92110628ee5f48b0106b32090854fcc61d6bca20 (patch) | |
tree | 9469e338a693fb56beea79c961d367771f13346c /internal/syscallcompat/sys_linux.go | |
parent | 0345cc08307c01da635ea5546952a584480c9a93 (diff) |
syscallcompat: Drop Fchownat emulation on macOS.
Diffstat (limited to 'internal/syscallcompat/sys_linux.go')
-rw-r--r-- | internal/syscallcompat/sys_linux.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/internal/syscallcompat/sys_linux.go b/internal/syscallcompat/sys_linux.go index 28a7149..cacec6a 100644 --- a/internal/syscallcompat/sys_linux.go +++ b/internal/syscallcompat/sys_linux.go @@ -154,16 +154,6 @@ func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { return syscall.Chmod(procPath, mode) } -// Fchownat syscall. -func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { - // Why would we ever want to call this without AT_SYMLINK_NOFOLLOW? - if flags&unix.AT_SYMLINK_NOFOLLOW == 0 { - tlog.Warn.Printf("Fchownat: adding missing AT_SYMLINK_NOFOLLOW flag") - flags |= unix.AT_SYMLINK_NOFOLLOW - } - return syscall.Fchownat(dirfd, path, uid, gid, flags) -} - // Symlinkat syscall. func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { return unix.Symlinkat(oldpath, newdirfd, newpath) |