Date: Mon, 18 Apr 2005 17:58:09 +0300 From: Giorgos Keramidas <keramida@freebsd.org> To: Tim Kientzle <kientzle@freebsd.org> Cc: cvs-all@freebsd.org Subject: Re: cvs commit: src/lib/libarchive archive_read_extract.c Message-ID: <20050418145809.GA53370@orion.daedalusnetworks.priv> In-Reply-To: <200504172249.j3HMn0Uu034720@repoman.freebsd.org> References: <200504172249.j3HMn0Uu034720@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2005-04-17 22:49, Tim Kientzle <kientzle@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?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050418145809.GA53370>