cvs commit: src/lib/libarchive Makefile archive_platform.h archive_read_extract.c configure.ac.in

Tim Kientzle kientzle at FreeBSD.org
Sat May 21 19:45:57 GMT 2005


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


More information about the cvs-src mailing list