remove absolute paths when executing binaries
we set the paths manually, so this is ok Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
committed by
Dietmar Maurer
parent
0b99e5aebc
commit
cbef49bf4f
@ -76,7 +76,7 @@ pub fn get_smart_data(
|
||||
health_only: bool,
|
||||
) -> Result<SmartData, Error> {
|
||||
|
||||
const SMARTCTL_BIN_PATH: &str = "/usr/sbin/smartctl";
|
||||
const SMARTCTL_BIN_PATH: &str = "smartctl";
|
||||
|
||||
let mut command = std::process::Command::new(SMARTCTL_BIN_PATH);
|
||||
command.arg("-H");
|
||||
|
Reference in New Issue
Block a user