diff --git a/libimagstore/src/store.rs b/libimagstore/src/store.rs index 4443c690..3251220f 100644 --- a/libimagstore/src/store.rs +++ b/libimagstore/src/store.rs @@ -238,7 +238,7 @@ impl Store { .map(|can| { 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 }