cvs commit: src/lib/libarchive archive_read_open_fd.c archive_read_open_file.c archive_write_open_fd.c archive_write_open_file.c

Tim Kientzle kientzle at FreeBSD.org
Mon Nov 13 00:26:46 UTC 2006


kientzle    2006-11-13 00:26:46 UTC

  FreeBSD src repository

  Modified files:
    lib/libarchive       archive_read_open_fd.c 
                         archive_read_open_file.c 
                         archive_write_open_fd.c 
                         archive_write_open_file.c 
  Log:
  Minor cleanup of the standard read/write I/O modules:
  
   * Use public API, don't access struct archive directly.  (People should be able to copy these into their applications as a template for custom I/O callbacks.)
   * Set "skip" only for regular files.  ("skip" allows the low-level library to catch attempts to add an archive to itself or extract over itself.)
   * Simplify the write_open functions by just calling stat() at the beginning.  Somehow, these functions had acquired some complex logic that tried to avoid the stat() call but never succeeded.
  
  MFC after: 10 days
  
  Revision  Changes    Path
  1.8       +2 -2      src/lib/libarchive/archive_read_open_fd.c
  1.13      +4 -3      src/lib/libarchive/archive_read_open_file.c
  1.6       +21 -30    src/lib/libarchive/archive_write_open_fd.c
  1.13      +26 -39    src/lib/libarchive/archive_write_open_file.c


More information about the cvs-src mailing list