<div dir="ltr"><div>That works for me. Simpler tests are always good!<br><br></div>James<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 5 December 2017 at 18:38, Rafael Avila de Espindola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Rafael Avila de Espindola <<a href="mailto:rafael.espindola@gmail.com">rafael.espindola@gmail.com</a>> writes:<br>
<br>
> James Henderson <<a href="mailto:jh7370.2008@my.bristol.ac.uk">jh7370.2008@my.bristol.ac.uk</a>> writes:<br>
><br>
>> I don't know if it does or not, but I'm not sure that it needs to:<br>
>> rename_fd fails with a permission denied error on a file marked as<br>
>> read-only by chmod on Windows, which is presumably sufficient for this<br>
>> case, no?<br>
><br>
> Oh, interesting. I will give that a try.<br>
<br>
</span>Looks like chmod maps to what attrib does under the hood. I have<br>
changed the test in r319809 to use attrib.<br>
<br>
Let me know what you think. It is as simple as chmod, but more windows<br>
specific.<br>
<br>
Cheers,<br>
Rafael<br>
<br>
</blockquote></div><br></div>