Skip to content

Commit

Permalink
Address get_os uname compiler errors on FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
oleiade committed Mar 21, 2024
1 parent 4773306 commit 3147a61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions os_info/src/freebsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ pub fn current_platform() -> Info {

fn get_os() -> Type {
match uname("-s").as_deref() {
"MidnightBSD" => Type::MidnightBSD,
"FreeBSD" => {
Some("MidnightBSD") => Type::MidnightBSD,
Some("FreeBSD") => {
let check_hardening = match Command::new("/sbin/sysctl")
.arg("hardening.version")
.output()
Expand Down

0 comments on commit 3147a61

Please sign in to comment.