[libc-commits] [libc] cae9c64 - [libc][Obvious] Fix typo in the alternate path of the POSIX "access" function.
Siva Chandra via libc-commits
libc-commits at lists.llvm.org
Wed Sep 14 01:04:42 PDT 2022
Author: Siva Chandra
Date: 2022-09-14T01:03:07-07:00
New Revision: cae9c64f0826332df1aab38018b92a3ae9e7caca
URL: https://github.com/llvm/llvm-project/commit/cae9c64f0826332df1aab38018b92a3ae9e7caca
DIFF: https://github.com/llvm/llvm-project/commit/cae9c64f0826332df1aab38018b92a3ae9e7caca.diff
LOG: [libc][Obvious] Fix typo in the alternate path of the POSIX "access" function.
Added:
Modified:
libc/src/unistd/linux/access.cpp
Removed:
################################################################################
diff --git a/libc/src/unistd/linux/access.cpp b/libc/src/unistd/linux/access.cpp
index 8c7034424fc0d..41fd3793f9077 100644
--- a/libc/src/unistd/linux/access.cpp
+++ b/libc/src/unistd/linux/access.cpp
@@ -20,8 +20,8 @@ namespace __llvm_libc {
LLVM_LIBC_FUNCTION(int, access, (const char *path, int mode)) {
#ifdef SYS_access
long ret = __llvm_libc::syscall(SYS_access, path, mode);
-#elif defined(SYS_accessat)
- long ret = __llvm_libc::syscall(SYS_accessat, AT_FDCWD, path, mode);
+#elif defined(SYS_faccessat)
+ long ret = __llvm_libc::syscall(SYS_faccessat, AT_FDCWD, path, mode, 0);
#else
#error "access syscalls not available."
#endif
More information about the libc-commits
mailing list