diff --git a/lib/package_config_files.c b/lib/package_config_files.c index 8653ffd1..fae7c572 100644 --- a/lib/package_config_files.c +++ b/lib/package_config_files.c @@ -224,7 +224,7 @@ xbps_entry_install_conf_file(struct xbps_handle *xhp, 0, pkgver, "Installing new configuration file to " "`%s.new-%s'.", cffile, version); - archive_entry_set_pathname(entry, buf); + archive_entry_copy_pathname(entry, buf); free(buf); rv = 1; break;