diff options
author | kientzle <kientzle@FreeBSD.org> | 2009-01-21 06:55:27 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2009-01-21 06:55:27 +0000 |
commit | 6db44bd9b7e133965f4557d4403d0dc6d8b370ad (patch) | |
tree | 5fbd6525820818c1402933c6a27ebfeb25e66dd6 /share | |
parent | 50e14c608efac2da56f8271a909fc7bc5396f053 (diff) | |
download | FreeBSD-src-6db44bd9b7e133965f4557d4403d0dc6d8b370ad.zip FreeBSD-src-6db44bd9b7e133965f4557d4403d0dc6d8b370ad.tar.gz |
Merge-from-Googlecode r419
In archive_write_disk: If archive_write_header() fails to create
the file, that's a failure and should return ARCHIVE_FAILED.
Metadata restore failures still return ARCHIVE_WARN, because
that's non-critical. Fix test_write_disk_secure test to
verify the correct return code in one case; add test_write_disk_failures
to do another very simple test of restore failure.
This should fix cpio coredumping when it tries to restore to
a write-protected directory.
Thanks to: Giorgos Keramidas
MFC after: 30 days
Diffstat (limited to 'share')
0 files changed, 0 insertions, 0 deletions