diff options
| author | Tobias Klauser <tklauser@distanz.ch> | 2018-06-20 15:41:37 +0200 |
|---|---|---|
| committer | Tobias Klauser <tobias.klauser@gmail.com> | 2018-06-21 06:47:46 +0000 |
| commit | 85e38cccb4d113862f4fd2c3c4d97927cd84420c (patch) | |
| tree | c39d71d5531a6e50a952044a422f8395419f7c89 /src/syscall/types_linux.go | |
| parent | feeff23556bc82778aab0ed80b576b953f064024 (diff) | |
| download | go-85e38cccb4d113862f4fd2c3c4d97927cd84420c.tar.xz | |
syscall: check faccessat flags parameter on Linux
Port CL 119495 from golang.org/x/sys/unix to the syscall package.
Currently Linux faccessat(2) syscall implementation doesn't support the
flags parameter. As per the discussion in #25845, permit the same flags
as glibc [1].
[1] https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/faccessat.c;h=ea42b2303ff4b2d2d6548ea04376fb265f773436;hb=HEAD
Updates #25845
Change-Id: I132b33275a9cc72b3a97acea5482806c7f47d7f7
Reviewed-on: https://go-review.googlesource.com/120015
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/syscall/types_linux.go')
| -rw-r--r-- | src/syscall/types_linux.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/syscall/types_linux.go b/src/syscall/types_linux.go index 125f69d60e..3c4c2f2cfd 100644 --- a/src/syscall/types_linux.go +++ b/src/syscall/types_linux.go @@ -405,6 +405,7 @@ const ( _AT_FDCWD = C.AT_FDCWD _AT_REMOVEDIR = C.AT_REMOVEDIR _AT_SYMLINK_NOFOLLOW = C.AT_SYMLINK_NOFOLLOW + _AT_EACCESS = C.AT_EACCESS ) // Terminal handling |
