Skip to content

Commit

Permalink
Merge pull request #358 from zanchey/freebsd-panic
Browse files Browse the repository at this point in the history
Use full path to sysctl on FreeBSD
  • Loading branch information
stanislav-tkach authored Feb 20, 2024
2 parents 13df8d7 + f4caedc commit 2f7258a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion os_info/src/freebsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fn get_os() -> Type {

match str::from_utf8(&os.stdout) {
Ok("FreeBSD\n") => {
let check_hardening = Command::new("sysctl")
let check_hardening = Command::new("/sbin/sysctl")

Check warning on line 34 in os_info/src/freebsd/mod.rs

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (sbin)
.arg("hardening.version")
.output()
.expect("Failed to check if is hardened");
Expand Down

0 comments on commit 2f7258a

Please sign in to comment.