diff options
author | kaiw <kaiw@FreeBSD.org> | 2008-01-31 08:11:01 +0000 |
---|---|---|
committer | kaiw <kaiw@FreeBSD.org> | 2008-01-31 08:11:01 +0000 |
commit | e57ce2b6e66969617ddf24cf15e2a24e11871b15 (patch) | |
tree | dbc11b1ac87207f4bae8a0e0ee7f583067e1c146 /sys/netinet/sctp_input.c | |
parent | 213915cb49d168b2bec532920c73351ee0fb53ba (diff) | |
download | FreeBSD-src-e57ce2b6e66969617ddf24cf15e2a24e11871b15.zip FreeBSD-src-e57ce2b6e66969617ddf24cf15e2a24e11871b15.tar.gz |
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
Diffstat (limited to 'sys/netinet/sctp_input.c')
0 files changed, 0 insertions, 0 deletions