From: Fabian Groffen Date: Wed, 9 Dec 2009 19:59:44 +0000 (-0000) Subject: add back chown command from trunk, I hope it won't break X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=02cc64c34488d1aca2c94082b28c3915ee7e713c;p=portage.git add back chown command from trunk, I hope it won't break svn path=/main/branches/prefix/; revision=14988 --- diff --git a/bin/etc-update b/bin/etc-update index 0e31a3e8e..968b2be9d 100755 --- a/bin/etc-update +++ b/bin/etc-update @@ -514,6 +514,7 @@ rm -rf "${TMP}" 2> /dev/null mkdir "${TMP}" || die "failed to create temp dir" 1 # make sure we have a secure directory to work in chmod 0700 "${TMP}" || die "failed to set perms on temp dir" 1 +chown ${UID:-0}:${GID:-0} "${TMP}" || die "failed to set ownership on temp dir" 1 # I need the CONFIG_PROTECT value #CONFIG_PROTECT=$(@PORTAGE_BASE@/bin/portageq envvar CONFIG_PROTECT)