diff --git a/rust/src/treefile.rs b/rust/src/treefile.rs index 493b263949..50df8222f0 100644 --- a/rust/src/treefile.rs +++ b/rust/src/treefile.rs @@ -272,7 +272,7 @@ impl Treefile { workdir: openat::Dir, ) -> io::Result> { let parsed = treefile_parse_recurse(filename, arch, 0)?; - let dfd = openat::Dir::open(filename.parent().unwrap_or_else(|| Path::new("/")))?; + let dfd = openat::Dir::open(filename.parent().unwrap())?; let rojig_spec = if let &Some(ref rojig) = &parsed.config.rojig { Some(Treefile::write_rojig_spec(&workdir, rojig)?) } else {