[PATCH] forkables: hardlink without WRITE_ATTRIBUTES first
Corinna Vinschen
corinna-cygwin@cygwin.com
Fri Mar 10 20:24:00 GMT 2017
On Mar 10 11:32, Michael Haubenwallner wrote:
> 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.
Patch applied to topic/forkables (which I rebased so pull -f).
I'm planning to make a 2.8.0 release and then pull over the forkables
stuff to master for the next release. Maybe we should bump the DLL
version to 3.0 then. It's a pretty big functionality extension...
Thanks,
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20170310/e6c8529f/attachment.sig>
More information about the Cygwin-patches
mailing list