Skip to content

Commit 32a92d8

Browse files
authored
Merge pull request bootc-dev#618 from cgwalters/drop-duplicate-root
cli: Drop a duplicate rootfs open
2 parents 377bfd6 + d6bb30c commit 32a92d8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/src/cli.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -700,8 +700,7 @@ async fn run_from_opt(opt: Opt) -> Result<()> {
700700
);
701701
}
702702

703-
let root = cap_std::fs::Dir::open_ambient_dir("/", cap_std::ambient_authority())?;
704-
lints::lint(&root)?;
703+
lints::lint(root)?;
705704
Ok(())
706705
}
707706
},

0 commit comments

Comments
 (0)