From: Joerg Sonnenberger Date: Mon, 19 May 2008 02:18:05 +0000 (-0400) Subject: Use copy_pathname/copy_hardlink/copy_symlink instead of the set X-Git-Tag: v2.6.0~225 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4bef229cdd2a1593836b7f180d61b7e529d4439e;p=thirdparty%2Flibarchive.git Use copy_pathname/copy_hardlink/copy_symlink instead of the set version after modifying them. SVN-Revision: 67 --- diff --git a/tar/util.c b/tar/util.c index 53319e74b..2ae430336 100644 --- a/tar/util.c +++ b/tar/util.c @@ -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); } }