projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c4ea8c
)
ensure we have the necessary access
author
Marius Mauch
<genone@gentoo.org>
Wed, 19 Jul 2006 09:55:34 +0000
(09:55 -0000)
committer
Marius Mauch
<genone@gentoo.org>
Wed, 19 Jul 2006 09:55:34 +0000
(09:55 -0000)
svn path=/main/trunk/; revision=3928
bin/etc-update
patch
|
blob
|
history
diff --git
a/bin/etc-update
b/bin/etc-update
index f6775e9570b96870e3357ea98eef3a7f8d471cf2..41def58a1f8e48f74af342c72e89deebdd83d47e 100755
(executable)
--- 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}/$$"