Date: Sat, 21 May 2005 19:45:56 +0000 (UTC) From: Tim Kientzle <kientzle@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libarchive Makefile archive_platform.h archive_read_extract.c configure.ac.in Message-ID: <200505211945.j4LJjuQN072018@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
kientzle 2005-05-21 19:45:56 UTC FreeBSD src repository Modified files: lib/libarchive Makefile archive_platform.h archive_read_extract.c configure.ac.in Log: Start to address the race issue between restoring a file's contents and restoring the metadata. In particular, the metadata-restore functions now all accept a file descriptor and a pathname. If the file descriptor is set and the platform supports the appropriate syscall, restore the metadata through the file descriptor. Otherwise, restore it through the pathname. This is complicated by varying syscall support (FreeBSD has an fchmod(2) but no fchflags(2), for example) and because non-file entries don't have an fd to use in restoring attributes (for example, mknod(2) doesn't return a file handle). MFC after: 14 days Revision Changes Path 1.35 +1 -1 src/lib/libarchive/Makefile 1.15 +13 -0 src/lib/libarchive/archive_platform.h 1.40 +188 -103 src/lib/libarchive/archive_read_extract.c 1.5 +3 -2 src/lib/libarchive/configure.ac.in
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200505211945.j4LJjuQN072018>