[PATCH] D40811: Delete temp file if rename fails

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 6 03:13:26 PST 2017


That works for me. Simpler tests are always good!

James

On 5 December 2017 at 18:38, Rafael Avila de Espindola <
rafael.espindola at gmail.com> wrote:

> Rafael Avila de Espindola <rafael.espindola at gmail.com> writes:
>
> > James Henderson <jh7370.2008 at my.bristol.ac.uk> writes:
> >
> >> I don't know if it does or not, but I'm not sure that it needs to:
> >> rename_fd fails with a permission denied error on a file marked as
> >> read-only by chmod on Windows, which is presumably sufficient for this
> >> case, no?
> >
> > Oh, interesting. I will give that a try.
>
> Looks like chmod maps to what attrib does under the hood. I have
> changed the test in r319809 to use attrib.
>
> Let me know what you think. It is as simple as chmod, but more windows
> specific.
>
> Cheers,
> Rafael
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171206/21e1fb18/attachment.html>


More information about the llvm-commits mailing list