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-07 17:58:02 +0300 |
commit | 3956ddd9bf28c518e73faf74c812379de02c3881 (patch) | |
tree | 0673fe9c109075cd657552eadd8f1aa52b0d5c44 /libgloss/arm | |
parent | 22d68bada39c0b676af7525d5dae272fd688c1c6 (diff) |
forkables: hardlink without WRITE_ATTRIBUTES first
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 'libgloss/arm')
0 files changed, 0 insertions, 0 deletions