fix condition

This commit is contained in:
yggverse 2025-08-03 14:13:13 +03:00
parent 422ee62c3d
commit 644b09c04b

View file

@ -48,7 +48,7 @@ impl Preload {
fn path(&self, relative: &PathBuf) -> Result<PathBuf> {
let mut p = PathBuf::from(&self.root);
p.push(relative);
if p.canonicalize()?.starts_with(&self.root) {
if !p.canonicalize()?.starts_with(&self.root) {
bail!(
"Unexpected absolute path resolved for `{}`!",
p.to_string_lossy()