diff options
author | kientzle <kientzle@FreeBSD.org> | 2004-03-06 05:44:13 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2004-03-06 05:44:13 +0000 |
commit | f7afdba4b37e2450f10409676d148c7aa7c3bdf5 (patch) | |
tree | 5a99f404cc2142ae531473f27a1e473424f17a49 /lib/libc/stdlib/calloc.c | |
parent | e795b7939d0e6a89ca34a05f6658f74df6c7644c (diff) | |
download | FreeBSD-src-f7afdba4b37e2450f10409676d148c7aa7c3bdf5.zip FreeBSD-src-f7afdba4b37e2450f10409676d148c7aa7c3bdf5.tar.gz |
Minor API tweak: The format-specific write_header function now sets
the size in the archive_entry object to zero if that format doesn't
store a body for that file type. This allows the client to determine
whether or not it should feed the file body to the archive. In
particular, cpio stores the file body for hardlinks, tar and shar
don't. With this change, bsdtar now correctly archives hardlinks in all
supported formats.
While I'm here, make shar output be more aggressive about creating directories.
Before this, commands such as:
bsdtar -cv -F shar some/explicit/path/to/a/file
wouldn't create the directory. Some simple logic to remember the last
directory creation helps reduce unnecessary mkdirs here.
At this point, I think the only flaw in libarchive's cpio support is
the failure to recognize hardlinks when reading.
Diffstat (limited to 'lib/libc/stdlib/calloc.c')
0 files changed, 0 insertions, 0 deletions