aboutsummaryrefslogtreecommitdiff
path: root/include/gcc-c-interface.h
diff options
context:
space:
mode:
authorTakashi Yano <takashi.yano@nifty.ne.jp>2024-12-08 07:34:48 +0900
committerTakashi Yano <takashi.yano@nifty.ne.jp>2024-12-11 07:32:22 +0900
commita0933cd17d19cca72b972a248e70210152f06808 (patch)
treeb0ded36954309172665ce925cb2c52158c5cdaba /include/gcc-c-interface.h
parent815eba882e32ecadd6862c71c36fccdcb0842a76 (diff)
downloadnewlib-a0933cd17d19cca72b972a248e70210152f06808.zip
newlib-a0933cd17d19cca72b972a248e70210152f06808.tar.gz
newlib-a0933cd17d19cca72b972a248e70210152f06808.tar.bz2
Cygwin: access: Correction for samba/SMB share
Previously, access() and eaccess() does not determine the permissions for files on samba/SMB share correctly. Even if the user logs-in as the owner of the file, access() and eaccess() referes to others' permissions. With this patch, to determine the permissions correctly, NtOpenFile() with desired access mask is used. Fixes: cf762b08cfb0 ("* security.cc (check_file_access): Create.") Reviewed-by: Corinna Vinschen <corinna@vinschen.de> Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
Diffstat (limited to 'include/gcc-c-interface.h')
0 files changed, 0 insertions, 0 deletions