diff options
author | Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com> | 2017-03-10 11:32:54 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2019-02-03 12:09:08 +0100 |
commit | 49970d2531bcda7c72fc9d41e48ec9f08cfe797b (patch) | |
tree | 408ec6d6be32b7b9cd6f99bcdbfc7d21ab916a8f /newlib | |
parent | f3d515f7f6e99e52dac30336d43411b0faf8ad0c (diff) | |
download | newlib-github/topic/forkables.zip newlib-github/topic/forkables.tar.gz newlib-github/topic/forkables.tar.bz2 |
forkables: hardlink without WRITE_ATTRIBUTES firstgithub/topic/forkablestopic/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 'newlib')
0 files changed, 0 insertions, 0 deletions