Skip to content

Commit

Permalink
Merge pull request #618 from cgwalters/drop-duplicate-root
Browse files Browse the repository at this point in the history
cli: Drop a duplicate rootfs open
  • Loading branch information
cgwalters committed Jun 20, 2024
2 parents 377bfd6 + d6bb30c commit 32a92d8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -700,8 +700,7 @@ async fn run_from_opt(opt: Opt) -> Result<()> {
);
}

let root = cap_std::fs::Dir::open_ambient_dir("/", cap_std::ambient_authority())?;
lints::lint(&root)?;
lints::lint(root)?;
Ok(())
}
},
Expand Down

0 comments on commit 32a92d8

Please sign in to comment.