aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/permitted_directories.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-09-03 00:38:56 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-09-03 00:38:56 +0100
commit572d4cdd84a8ac620f3f74a68fb669b8e4d61a35 (patch)
tree9f41e618041380b0e24cdb132e1ae4d1383ceeda /paludis/repositories/e/permitted_directories.cc
parent77f9ca11a1c69224a9c83c90f1dec3cb7afaa36e (diff)
downloadpaludis-572d4cdd84a8ac620f3f74a68fb669b8e4d61a35.tar.gz
paludis-572d4cdd84a8ac620f3f74a68fb669b8e4d61a35.tar.xz
Ban most directories for exheres-0
Diffstat (limited to 'paludis/repositories/e/permitted_directories.cc')
-rw-r--r--paludis/repositories/e/permitted_directories.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/paludis/repositories/e/permitted_directories.cc b/paludis/repositories/e/permitted_directories.cc
index bb2d76f8a..5a178439c 100644
--- a/paludis/repositories/e/permitted_directories.cc
+++ b/paludis/repositories/e/permitted_directories.cc
@@ -51,6 +51,10 @@ PermittedDirectories::add(const FSPath & p, bool b)
bool
PermittedDirectories::permit(const FSPath & p) const
{
+ /* otherwise we can't just -/ for "explicit only" */
+ if (p == FSPath("/"))
+ return true;
+
bool result(true);
for (auto r(_imp->rules.begin()), r_end(_imp->rules.end()) ;