Fixup fdesetup isactive outputting when it should not (#163)

This commit is contained in:
Ana Hobden 2023-01-09 09:24:24 -08:00 committed by GitHub
parent e9e29aacb1
commit 232789ed1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -105,6 +105,9 @@ impl Planner for DarwinMulti {
let encrypt = if self.encrypt == None {
Command::new("/usr/bin/fdesetup")
.arg("isactive")
.stdout(std::process::Stdio::null())
.stderr(std::process::Stdio::null())
.process_group(0)
.status()
.await
.map_err(|e| PlannerError::Custom(Box::new(e)))?