Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Apply owner/group on @config files if INSTALL_AS_USER not set
Baptiste Daroussin committed 10 years ago
commit 1713b5a9a3d6bb59a9076dc804803a3ec2655a00
parent f8085c7
1 file changed +3 -0
modified libpkg/pkg_add.c
@@ -264,6 +264,9 @@ do_extract(struct archive *a, struct archive_entry *ae, const char *location,
			fclose(f);
			/* Apply expect mode setting */
			chmod(rpath, aest->st_mode);
+
			if (getenv("INSTALL_AS_USER") == NULL) {
+
				chown(rpath, aest->st_uid, aest->st_gid);
+
			}
		}

		if (ret != ARCHIVE_OK) {