Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Use a simpler method to extract perms
Baptiste Daroussin committed 10 years ago
commit 54f593f56328e3419b82de20a2b009b3209d15ad
parent 0d27e28
1 file changed +1 -1
modified libpkg/pkg_add.c
@@ -312,7 +312,7 @@ do_extract(struct archive *a, struct archive_entry *ae, const char *location,
			}
		}
		/* enforce modes and creds */
-
		lchmod(pathname, aest->st_mode & 07777);
+
		lchmod(pathname, archive_entry_perm(ae));
		if (getenv("INSTALL_AS_USER") == NULL) {
			lchown(pathname, aest->st_uid, aest->st_gid);
		}