summaryrefslogtreecommitdiff
path: root/tar/write.c
diff options
context:
space:
mode:
authorTim Kientzle <kientzle@gmail.com>2009-12-06 19:11:21 -0500
committerTim Kientzle <kientzle@gmail.com>2009-12-06 19:11:21 -0500
commitdbc02d5fbb8c9a227370993a4ba7f3cfd7ed59b7 (patch)
treeeeab5a00df4f4d5db64898052b946ead1fe602a5 /tar/write.c
parente9ec71193bbbe7e98ebf68ce3e714cfc7c6c33a5 (diff)
downloadlibarchive-dbc02d5fbb8c9a227370993a4ba7f3cfd7ed59b7.tar.gz
Fix empty error message reported in Issue 51.
SVN-Revision: 1715
Diffstat (limited to 'tar/write.c')
-rw-r--r--tar/write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tar/write.c b/tar/write.c
index 5eb95234..13030ab2 100644
--- a/tar/write.c
+++ b/tar/write.c
@@ -568,7 +568,7 @@ append_archive_filename(struct bsdtar *bsdtar, struct archive *a,
rc = append_archive(bsdtar, a, ina);
- if (archive_errno(ina)) {
+ if (rc != ARCHIVE_OK) {
lafe_warnc(0, "Error reading archive %s: %s",
filename, archive_error_string(ina));
bsdtar->return_value = 1;