diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2025-01-12 22:45:54 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2025-01-12 23:11:18 +0100 |
commit | 264544bf72f6ed85530a1b058e9efdb73ab72e90 (patch) | |
tree | ad77b80e7d1168f28cddb9230154e6b477cf3299 /newlib | |
parent | b42ac298bb2ea7c39b0827429779d800ee7f5ac0 (diff) | |
download | newlib-264544bf72f6ed85530a1b058e9efdb73ab72e90.zip newlib-264544bf72f6ed85530a1b058e9efdb73ab72e90.tar.gz newlib-264544bf72f6ed85530a1b058e9efdb73ab72e90.tar.bz2 |
Cygwin: unlink/rename: fix skipping deletion with POSIX semantics
unlink_nt() and rename2 () both check for the FILE_SUPPORTS_OPEN_BY_FILE_ID
flag to use POSIX delete/rename semantics. Both erroneously check the flag
against the file attributes using has_attributes().
Given that this flag is a filesystem flag, check using fs_flags() instead.
Fixes: fe2545e9faaf ("Cygwin: don't use unlink/rename POSIX semantics on certain NTFS")
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'newlib')
0 files changed, 0 insertions, 0 deletions