diff options
author | Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com> | 2017-03-10 13:32:54 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2019-02-03 14:09:08 +0300 |
commit | 49970d2531bcda7c72fc9d41e48ec9f08cfe797b (patch) | |
tree | 408ec6d6be32b7b9cd6f99bcdbfc7d21ab916a8f /winsup/cygwin/string.h | |
parent | f3d515f7f6e99e52dac30336d43411b0faf8ad0c (diff) |
forkables: hardlink without WRITE_ATTRIBUTES firsttopic/forkables
When the current process has renamed (to bin) a readonly dll, we get
STATUS_TRANSACTION_NOT_ACTIVE for unknown reason when subsequently
creating the forkable hardlink. A workaround is to open the original
file with FILE_WRITE_ATTRIBUTES access, but that fails with permission
denied for users not owning the original file.
* forkable.cc (dll::create_forkable): Retry hardlink creation using the
original file's handle opened with FILE_WRITE_ATTRIBUTES access when the
first attempt fails with STATUS_TRANSACTION_NOT_ACTIVE.
Diffstat (limited to 'winsup/cygwin/string.h')
0 files changed, 0 insertions, 0 deletions