diff options
author | Eric Blake <eblake@redhat.com> | 2009-09-25 17:44:45 +0400 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2009-09-25 17:44:45 +0400 |
commit | 3dbe243afa103716b4f6e227087d447afdd09fad (patch) | |
tree | 22968367aeda9510d05198488749af53faa0a710 /winsup/cygwin/syscalls.cc | |
parent | 5386cd8ecc95e8f8e69460edac473236caa5e9fe (diff) |
Fix faccessat(,0) and access() semantics.
* fhandler.h (fhandler_base::fhaccess): Add parameter.
* security.h (check_file_access, check_registry_access): Likewise.
* security.cc (check_file_access, check_registry_access)
(check_access): Implement new parameter.
* fhandler.cc (fhandler_base::fhaccess): Likewise.
(device_access_denied): Update caller.
* syscalls.cc (access, faccessat): Update callers.
* spawn.cc (find_exec, fixup): Likewise.
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r-- | winsup/cygwin/syscalls.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index 542a122d7..3eb77fd07 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -1572,7 +1572,7 @@ access (const char *fn, int flags) fhandler_base *fh = build_fh_name (fn, NULL, PC_SYM_FOLLOW, stat_suffixes); if (fh) { - res = fh->fhaccess (flags); + res = fh->fhaccess (flags, false); delete fh; } } @@ -3862,7 +3862,7 @@ faccessat (int dirfd, const char *pathname, int mode, int flags) stat_suffixes); if (fh) { - res = fh->fhaccess (mode); + res = fh->fhaccess (mode, flags & AT_EACCESS); delete fh; } } |