Skip to content

Don't search path for smartctl, rather use the binary path found by cmake

FreeBSD has smartctl installed via ports in /usr/local/sbin, which is not in the defined $PATH environment set up to "possibly" include smartctl. So the execution of the smartctl-process in helper.cpp would fail on FreeBSD.

The cmake however already looks for the binaries existence and knows the path of it.

So instead of simply guessing sensible $PATH values, let cmake define the found location and use that one.

Merge request reports