Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Apply owner/group on @config files if INSTALL_AS_USER not set
Baptiste Daroussin committed 10 years ago
commit 1713b5a9a3d6bb59a9076dc804803a3ec2655a00
parent f8085c7f4d86b298829d0374acafdd84cf31b8a7
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) {