Date: Thu, 31 Jan 2008 08:11:01 +0000 (UTC) From: Kai Wang <kaiw@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libarchive archive_write_set_format_ar.c Message-ID: <200801310811.m0V8B1vu082192@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
kaiw 2008-01-31 08:11:01 UTC FreeBSD src repository Modified files: lib/libarchive archive_write_set_format_ar.c Log: Add hook routine archive_write_ar_finish() which writes the 'ar' global header if nothing else has been written before the closing of the archive. This will change the behaviour when creating archives without members, i.e., instead of generating a 0-size archive file, an archive with just the global header (8 bytes in total) will be created and it is indeed a valid archive by the definition of libarchive, thus subsequent operation on this archive will be accepted. This especially solves the failure caused by following sequence: (several ports do) % ar cru libfoo.a # without specifying obj files % ranlib libfoo.a Reviewed by: kientzle, jkoshy Approved by: kientzle Approved by: jkoshy (mentor) Reported by: erwin MFC after: 1 month Revision Changes Path 1.5 +19 -1 src/lib/libarchive/archive_write_set_format_ar.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801310811.m0V8B1vu082192>