]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Use the original filename for reporting errors, instead of the processed one.
authorTim Kientzle <kientzle@gmail.com>
Fri, 4 Nov 2011 04:33:28 +0000 (00:33 -0400)
committerTim Kientzle <kientzle@gmail.com>
Fri, 4 Nov 2011 04:33:28 +0000 (00:33 -0400)
SVN-Revision: 3745

tar/write.c

index 9e0eb728261e5573cf4c25dbd6283066d0261c23..7e4fb9a0db2bd69bd7be16019898239d8d313b23 100644 (file)
@@ -562,9 +562,10 @@ archive_names_from_file(struct bsdtar *bsdtar, struct archive *a)
  */
 static int
 append_archive_filename(struct bsdtar *bsdtar, struct archive *a,
-    const char *filename)
+    const char *raw_filename)
 {
        struct archive *ina;
+       const char *filename = raw_filename;
        int rc;
 
        if (strcmp(filename, "-") == 0)
@@ -583,7 +584,7 @@ append_archive_filename(struct bsdtar *bsdtar, struct archive *a,
 
        if (rc != ARCHIVE_OK) {
                lafe_warnc(0, "Error reading archive %s: %s",
-                   filename, archive_error_string(ina));
+                   raw_filename, archive_error_string(ina));
                bsdtar->return_value = 1;
        }
        archive_read_free(ina);