Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix setting modes
Baptiste Daroussin committed 11 years ago
commit 7c6ecd2c6dbb0d7873182c1c3f55f5d72e811592
parent a852f77
1 file changed +1 -1
modified libpkg/pkg_add.c
@@ -176,11 +176,11 @@ do_extract(struct archive *a, struct archive_entry *ae, const char *location,
		);
		strlcpy(rpath, pathname, sizeof(rpath));

+
		aest = archive_entry_stat(ae);
		if (lstat(rpath, &st) != -1) {
			/*
			 * We have an existing file on the path, so handle it
			 */
-
			aest = archive_entry_stat(ae);
			if (!S_ISDIR(aest->st_mode)) {
				pkg_debug(2, "Old version found, renaming");
				pkg_add_file_random_suffix(rpath, sizeof(rpath), 12);