Date: Mon, 13 Nov 2006 00:26:46 +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 archive_read_open_fd.c archive_read_open_file.c archive_write_open_fd.c archive_write_open_file.c Message-ID: <200611130026.kAD0QkBo039926@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611130026.kAD0QkBo039926>