Skip to content

Commit

Permalink
Merge pull request #309 from martintc/master
Browse files Browse the repository at this point in the history
Fix #308: Behavior break on FreeBSD to return Type::Unknown
  • Loading branch information
stanislav-tkach authored May 20, 2022
2 parents 6d7a3e0 + c0f9604 commit c1385ff
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 @@ -37,7 +37,7 @@ fn get_os() -> Type {
.expect("Failed to check if is hardened");
match str::from_utf8(&check_hardening.stderr) {
Ok("0\n") => Type::HardenedBSD,
Ok(_) => Type::Unknown,
Ok(_) => Type::FreeBSD,
Err(_) => Type::FreeBSD,
}
}
Expand Down

0 comments on commit c1385ff

Please sign in to comment.