cvs commit: src/lib/libarchive archive_read_extract.c

Giorgos Keramidas keramida at freebsd.org
Mon Apr 18 07:58:14 PDT 2005


On 2005-04-17 22:49, Tim Kientzle <kientzle at freebsd.org> wrote:
> kientzle    2005-04-17 22:49:00 UTC
>
>   FreeBSD src repository
>
>   Modified files:
>     lib/libarchive       archive_read_extract.c
>   Log:
>   Portability enhancement: MS Windows won't restore metadata if the file
>   is still open, so close the file as soon as we've written the
>   file contents, before we attempt to restore metadata.
>
>   Thanks to:  Kees Zeelenberg

This may lead to a race though.  Between the close() and the
restore_metadata() call, the file may have gone away and another
one could take its place.

Is there some way to do the close-then-restore only on Windows?



More information about the cvs-src mailing list