]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Use copy_pathname/copy_hardlink/copy_symlink instead of the set
authorJoerg Sonnenberger <joerg.sonnenberger@gmail.com>
Mon, 19 May 2008 02:18:05 +0000 (22:18 -0400)
committerJoerg Sonnenberger <joerg.sonnenberger@gmail.com>
Mon, 19 May 2008 02:18:05 +0000 (22:18 -0400)
version after modifying them.

SVN-Revision: 67

tar/util.c

index 53319e74b581d2a4fcabea666b5aa29994b53902..2ae430336e92212f6a8c1aa1ea9dd4dbbb92b48c 100644 (file)
@@ -363,7 +363,7 @@ edit_pathname(struct bsdtar *bsdtar, struct archive_entry *entry)
                return 1;
        }
        if (r == 1) {
-               archive_entry_set_pathname(entry, subst_name);
+               archive_entry_copy_pathname(entry, subst_name);
                free(subst_name);
                if (*subst_name == '\0')
                        return -1;
@@ -377,7 +377,7 @@ edit_pathname(struct bsdtar *bsdtar, struct archive_entry *entry)
                        return 1;
                }
                if (r == 1) {
-                       archive_entry_set_hardlink(entry, subst_name);
+                       archive_entry_copy_hardlink(entry, subst_name);
                        free(subst_name);
                }
        }
@@ -388,7 +388,7 @@ edit_pathname(struct bsdtar *bsdtar, struct archive_entry *entry)
                        return 1;
                }
                if (r == 1) {
-                       archive_entry_set_symlink(entry, subst_name);
+                       archive_entry_copy_symlink(entry, subst_name);
                        free(subst_name);
                }
        }