summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Mauch <genone@gentoo.org>2006-07-19 09:55:34 +0000
committerMarius Mauch <genone@gentoo.org>2006-07-19 09:55:34 +0000
commitbdf5429e24956997147e28fe71af5903b8e04e8c (patch)
treebd2f31b295e7c27421094d3c7168c5c507708ae3
parent7c4ea8c920cb0c418ce6d9764d9698d2e76ba9e9 (diff)
downloadportage-bdf5429e24956997147e28fe71af5903b8e04e8c.tar.gz
portage-bdf5429e24956997147e28fe71af5903b8e04e8c.tar.bz2
portage-bdf5429e24956997147e28fe71af5903b8e04e8c.zip
ensure we have the necessary access
svn path=/main/trunk/; revision=3928
-rwxr-xr-xbin/etc-update2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/etc-update b/bin/etc-update
index f6775e957..41def58a1 100755
--- a/bin/etc-update
+++ b/bin/etc-update
@@ -365,6 +365,8 @@ scriptname=$(basename $0)
trap die term
+[ -w /etc ] || die "Need root priviledges for write access to /etc"
+
export PORTAGE_TMPDIR=$(/usr/lib/portage/bin/portageq envvar PORTAGE_TMPDIR)
TMP="${PORTAGE_TMPDIR}/$$"