aboutsummaryrefslogtreecommitdiff
path: root/paludis/util/process.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-20 18:57:57 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-20 18:57:57 +0000
commit42ed4b3ffb46932a7315c0b08a1cb27ad789a823 (patch)
treec4090aaf090c804ceba1c6c0cf68ee703fbd6669 /paludis/util/process.cc
parent8815d142c5245fd3969f547eb76c233b767ff6ce (diff)
downloadpaludis-42ed4b3ffb46932a7315c0b08a1cb27ad789a823.tar.gz
paludis-42ed4b3ffb46932a7315c0b08a1cb27ad789a823.tar.xz
Move env var names into header
Diffstat (limited to 'paludis/util/process.cc')
-rw-r--r--paludis/util/process.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/paludis/util/process.cc b/paludis/util/process.cc
index eebf145ce..4e8e7fc06 100644
--- a/paludis/util/process.cc
+++ b/paludis/util/process.cc
@@ -27,6 +27,7 @@
#include <paludis/util/safe_ofstream.hh>
#include <paludis/util/log.hh>
#include <paludis/util/system.hh>
+#include <paludis/util/env_var_names.hh>
#include <iostream>
#include <functional>
@@ -917,7 +918,7 @@ Process::sandbox()
if (can_use_sandbox)
{
- if (! getenv_with_default("PALUDIS_DO_NOTHING_SANDBOXY", "").empty())
+ if (! getenv_with_default(env_vars::do_nothing_sandboxy, "").empty())
Log::get_instance()->message("util.system.nothing_sandboxy", ll_debug, lc_no_context)
<< "PALUDIS_DO_NOTHING_SANDBOXY is set, not using sandbox";
else if (! getenv_with_default("SANDBOX_ACTIVE", "").empty())
@@ -941,7 +942,7 @@ Process::sydbox()
if (can_use_sydbox)
{
- if (! getenv_with_default("PALUDIS_DO_NOTHING_SANDBOXY", "").empty())
+ if (! getenv_with_default(env_vars::do_nothing_sandboxy, "").empty())
Log::get_instance()->message("util.system.nothing_sandboxy", ll_debug, lc_no_context)
<< "PALUDIS_DO_NOTHING_SANDBOXY is set, not using sydbox";
else if (! getenv_with_default("SYDBOX_ACTIVE", "").empty())