aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2008-02-22 15:19:37 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2008-02-22 15:19:37 +0000
commit4ee4ed76c1a0d9f34f5e649497a3732667371c83 (patch)
tree9c3b1d0fdc16323d1922287249fb348ae5b80f92
parent3d7a7ba05779d9875cf0bae1848b23fc778b4605 (diff)
downloadpaludis-4ee4ed76c1a0d9f34f5e649497a3732667371c83.tar.gz
paludis-4ee4ed76c1a0d9f34f5e649497a3732667371c83.tar.xz
Don't export an empty ${ROOT} for non-specpath.
-rw-r--r--paludis/environments/paludis/paludis_config.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/paludis/environments/paludis/paludis_config.cc b/paludis/environments/paludis/paludis_config.cc
index c9b9a9a..603f44b 100644
--- a/paludis/environments/paludis/paludis_config.cc
+++ b/paludis/environments/paludis/paludis_config.cc
@@ -253,7 +253,7 @@ PaludisConfig::PaludisConfig(PaludisEnvironment * const e, const std::string & s
}
}
- _imp->root = root_prefix;
+ _imp->root = root_prefix.empty() ? "/" : root_prefix;
_imp->config_dir = stringify(local_config_dir);
/* check that we can safely use userpriv */
{