Fixup path-includes-path checker

This commit is contained in:
Matthias Beyer 2016-02-09 17:16:55 +01:00
parent d15a5a150b
commit d85f985694

View file

@ -238,7 +238,7 @@ impl Store {
.map(|can| { .map(|can| {
can.starts_with(&self.location) can.starts_with(&self.location)
}) })
.unwrap_or(false) .unwrap_or(path.starts_with(&self.location))
// we return false, as fs::canonicalize() returns an Err(..) on filesystem errors // we return false, as fs::canonicalize() returns an Err(..) on filesystem errors
} }