aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/check_userpriv.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/repositories/e/check_userpriv.cc
parent8815d142c5245fd3969f547eb76c233b767ff6ce (diff)
downloadpaludis-42ed4b3ffb46932a7315c0b08a1cb27ad789a823.tar.gz
paludis-42ed4b3ffb46932a7315c0b08a1cb27ad789a823.tar.xz
Move env var names into header
Diffstat (limited to 'paludis/repositories/e/check_userpriv.cc')
-rw-r--r--paludis/repositories/e/check_userpriv.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/paludis/repositories/e/check_userpriv.cc b/paludis/repositories/e/check_userpriv.cc
index d7a0bac46..5dd4d1a3e 100644
--- a/paludis/repositories/e/check_userpriv.cc
+++ b/paludis/repositories/e/check_userpriv.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2010 Ciaran McCreesh
+ * Copyright (c) 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -18,11 +18,14 @@
*/
#include <paludis/repositories/e/check_userpriv.hh>
+
#include <paludis/util/exception.hh>
#include <paludis/util/system.hh>
#include <paludis/util/fs_stat.hh>
#include <paludis/util/stringify.hh>
#include <paludis/util/log.hh>
+#include <paludis/util/env_var_names.hh>
+
#include <paludis/environment.hh>
using namespace paludis;
@@ -33,7 +36,7 @@ paludis::erepository::check_userpriv(const FSPath & f, const Environment * env,
{
Context c("When checking permissions on '" + stringify(f) + "' for userpriv:");
- if (! getenv_with_default("PALUDIS_BYPASS_USERPRIV_CHECKS", "").empty())
+ if (! getenv_with_default(env_vars::bypass_userpriv_checks, "").empty())
return false;
FSStat f_stat(f);