aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-12-01 00:47:28 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-12-01 00:47:28 +0000
commit28da5e1a25d3ad19ae0511eb4eb791b5b9a8bdaa (patch)
tree6462ea043874b8ba95f3f77584664884b06c5909
parent756c408292bae3b2676c56a033e4c7b997704f7e (diff)
downloadpaludis-28da5e1a25d3ad19ae0511eb4eb791b5b9a8bdaa.tar.gz
paludis-28da5e1a25d3ad19ae0511eb4eb791b5b9a8bdaa.tar.xz
If PALUDIS_BYPASS_USERPRIV_CHECKS is set, don't do id checks
-rw-r--r--paludis/repositories/e/ebuild_entries.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/paludis/repositories/e/ebuild_entries.cc b/paludis/repositories/e/ebuild_entries.cc
index 7cd2458..fa0cedb 100644
--- a/paludis/repositories/e/ebuild_entries.cc
+++ b/paludis/repositories/e/ebuild_entries.cc
@@ -320,6 +320,9 @@ namespace
{
Context c("When checking permissions on '" + stringify(f) + "' for userpriv:");
+ if (! getenv_with_default("PALUDIS_BYPASS_USERPRIV_CHECKS", "").empty())
+ return;
+
if (f.exists())
{
if (f.group() != env->reduced_gid())