]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: fix up cached DOS file attributes after file creation
authorCorinna Vinschen <corinna@vinschen.de>
Tue, 16 Nov 2021 18:44:21 +0000 (19:44 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 16 Nov 2021 18:58:56 +0000 (19:58 +0100)
commit41de4b6fd735b86afa7ea05ca8cbfeddd2e1f78f
treeae292acba978eaa1689adfdf4c157da7023aedfb
parent9980177def176225457a0f371c7c070dc627b3dc
Cygwin: fix up cached DOS file attributes after file creation

The file attributes after creating a file are not necessarily
identical to the attributes we passed as argument to NtCreateFile.
This results in subsequent operations like fchmod or facl to
set the DOS file attributes to unexpected values.

The fix is to request file attributes from the OS after file creation
and cache those.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/fhandler.cc
winsup/cygwin/release/3.3.3
This page took 0.02615 seconds and 5 git commands to generate.