summaryrefslogtreecommitdiffstats
path: root/bin/dosbin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-03-18 20:29:55 +0000
committerZac Medico <zmedico@gentoo.org>2006-03-18 20:29:55 +0000
commitb8a4f9798f2fca741f0eef3a029f1fa09bb5823c (patch)
treee61db15bcd164c80d5960528f9683f3f4a41110c /bin/dosbin
parentf1567a5e44d32b79838330d5b7e5350f609571a1 (diff)
downloadportage-b8a4f9798f2fca741f0eef3a029f1fa09bb5823c.tar.gz
portage-b8a4f9798f2fca741f0eef3a029f1fa09bb5823c.tar.bz2
portage-b8a4f9798f2fca741f0eef3a029f1fa09bb5823c.zip
Make PORTAGE_INST_UID and PORTAGE_INST_GID default to 0 in case of environment problems.
svn path=/main/trunk/; revision=2942
Diffstat (limited to 'bin/dosbin')
-rwxr-xr-xbin/dosbin2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/dosbin b/bin/dosbin
index 9cae684a8..30aa7893c 100755
--- a/bin/dosbin
+++ b/bin/dosbin
@@ -16,7 +16,7 @@ ret=0
for x in "$@" ; do
if [[ -e ${x} ]] ; then
- install -m0755 -o ${PORTAGE_INST_UID} -g ${PORTAGE_INST_GID} "${x}" "${D}${DESTTREE}/sbin"
+ install -m0755 -o ${PORTAGE_INST_UID:-0} -g ${PORTAGE_INST_GID:-0} "${x}" "${D}${DESTTREE}/sbin"
else
echo "!!! ${0##*/}: ${x} does not exist" 1>&2
false