aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/permitted_directories.cc
diff options
context:
space:
mode:
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()) ;