Skip to content

Commit

Permalink
filesystem: Only capture needed columns
Browse files Browse the repository at this point in the history
This fixes compatibility with current c9s `findmnt`, which otherwise
errors out with
`findmnt: ACTION column is requested, but --poll is not enabled`
  • Loading branch information
cgwalters committed Dec 7, 2023
1 parent 157acb2 commit 1457c20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/filesystem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pub(crate) fn inspect_filesystem(root: &openat::Dir, path: &str) -> Result<Files
// SAFETY: This is unsafe just for the pre_exec, when we port to cap-std we can use cap-std-ext
let o = unsafe {
Command::new("findmnt")
.args(["-J", "-v", "--output-all", path])
.args(["-J", "-v", "--output=SOURCE,FSTYPE,OPTIONS,UUID", path])
.pre_exec(move || nix::unistd::fchdir(rootfd).map_err(Into::into))
.output()?
};
Expand Down

0 comments on commit 1457c20

Please sign in to comment.