summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2004-03-06 05:44:13 +0000
committerkientzle <kientzle@FreeBSD.org>2004-03-06 05:44:13 +0000
commitf7afdba4b37e2450f10409676d148c7aa7c3bdf5 (patch)
tree5a99f404cc2142ae531473f27a1e473424f17a49 /lib/libc
parente795b7939d0e6a89ca34a05f6658f74df6c7644c (diff)
downloadFreeBSD-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')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud