aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-03-22 20:50:06 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-03-22 20:50:06 +0000
commit0c20e7cf36ed3505724666fe440c74270233af1e (patch)
treed21ccc058e0419359c6f5bdc3769fd5b48a9ee1f
parent151ee7688bf59f888b2ef02345e7e8c2c4c67c40 (diff)
downloadpaludis-0c20e7cf36ed3505724666fe440c74270233af1e.tar.gz
paludis-0c20e7cf36ed3505724666fe440c74270233af1e.tar.xz
More userpriv work
-rw-r--r--paludis/environments/paludis/paludis_config.cc2
-rw-r--r--src/clients/paludis/Makefile.am1
2 files changed, 2 insertions, 1 deletions
diff --git a/paludis/environments/paludis/paludis_config.cc b/paludis/environments/paludis/paludis_config.cc
index f133233..6e6b4ce 100644
--- a/paludis/environments/paludis/paludis_config.cc
+++ b/paludis/environments/paludis/paludis_config.cc
@@ -1113,6 +1113,6 @@ PaludisConfig::reduced_gid() const
std::string
PaludisConfig::reduced_username() const
{
- return "paludisbuild";
+ return getenv_with_default("PALUDIS_REDUCED_USERNAME", "paludisbuild");
}
diff --git a/src/clients/paludis/Makefile.am b/src/clients/paludis/Makefile.am
index f2bf184..e8cf0e3 100644
--- a/src/clients/paludis/Makefile.am
+++ b/src/clients/paludis/Makefile.am
@@ -85,6 +85,7 @@ TESTS_ENVIRONMENT = env \
PALUDIS_REPOSITORY_SO_DIR="`$(top_srcdir)/paludis/repositories/gentoo/ebuild/utils/canonicalise $(top_builddir)/paludis/repositories`" \
PALUDIS_ENVIRONMENT_SO_DIR="`$(top_srcdir)/paludis/repositories/gentoo/ebuild/utils/canonicalise $(top_builddir)/paludis/environments`" \
PALUDIS_NO_CHOWN="yupyup" \
+ PALUDIS_REDUCED_USERNAME="`id -un`" \
SYSCONFDIR="$(sysconfdir)" \
bash $(top_srcdir)/test/run_test.sh bash