Skip to content

Commit

Permalink
there is no g-prefix for android
Browse files Browse the repository at this point in the history
  • Loading branch information
cre4ture committed Jan 14, 2024
1 parent 47d5b55 commit b591db6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/common/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2340,7 +2340,7 @@ pub fn whoami() -> String {
pub fn host_name_for(util_name: &str) -> Cow<str> {
// In some environments, e.g. macOS/freebsd, the GNU coreutils are prefixed with "g"
// to not interfere with the BSD counterparts already in `$PATH`.
#[cfg(not(target_os = "linux"))]
#[cfg(all(not(target_os = "linux"), not(target_os = "android")))]
{
// make call to `host_name_for` idempotent
if util_name.starts_with('g') && util_name != "groups" {
Expand Down

0 comments on commit b591db6

Please sign in to comment.