From 4bef229cdd2a1593836b7f180d61b7e529d4439e Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Sun, 18 May 2008 22:18:05 -0400 Subject: [PATCH] Use copy_pathname/copy_hardlink/copy_symlink instead of the set version after modifying them. SVN-Revision: 67 --- tar/util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } } -- 2.47.3