]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Clang static analysis found an error return that was being
authorTim Kientzle <kientzle@gmail.com>
Thu, 19 Nov 2009 07:15:10 +0000 (02:15 -0500)
committerTim Kientzle <kientzle@gmail.com>
Thu, 19 Nov 2009 07:15:10 +0000 (02:15 -0500)
commit3f8c3c7081fea73e95ac0f71c252c4cd740b80f4
tree660de41161f565861aa18e7ada45dda23d6df96a
parent3f7c4c640728ccad8cafbdb3a9dcb3dbee68aade
Clang static analysis found an error return that was being
ignored.  If copying data from an archive into a file on disk
fails with a fatal read error, exit with an error, since we
can't progress if the archive is broken.  If it fails writing
to the file on disk, arrange for cpio to exit with an error.
Rename 'copy_data' to 'extract_data' to make it clearer that
it's only used when extracting data to disk.

Thanks to Michihiro NAKAJIMA for performing the analysis and fixing
most of the issues found.

SVN-Revision: 1674
cpio/cpio.c