mirror of
https://github.com/YGGverse/btracker.git
synced 2026-03-31 17:15:31 +00:00
fix condition
This commit is contained in:
parent
422ee62c3d
commit
644b09c04b
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ impl Preload {
|
||||||
fn path(&self, relative: &PathBuf) -> Result<PathBuf> {
|
fn path(&self, relative: &PathBuf) -> Result<PathBuf> {
|
||||||
let mut p = PathBuf::from(&self.root);
|
let mut p = PathBuf::from(&self.root);
|
||||||
p.push(relative);
|
p.push(relative);
|
||||||
if p.canonicalize()?.starts_with(&self.root) {
|
if !p.canonicalize()?.starts_with(&self.root) {
|
||||||
bail!(
|
bail!(
|
||||||
"Unexpected absolute path resolved for `{}`!",
|
"Unexpected absolute path resolved for `{}`!",
|
||||||
p.to_string_lossy()
|
p.to_string_lossy()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue