diff --git a/Cargo.lock b/Cargo.lock index 5781d4e32fd..38c2bde8d85 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1651,9 +1651,9 @@ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" [[package]] name = "libc" -version = "0.2.175" +version = "0.2.178" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a82ae493e598baaea5209805c49bbf2ea7de956d50d7da0da1164f9c6d28543" +checksum = "37c93d8daa9d8a012fd8ab92f088405fb202ea0b6ab73ee2482ae66af4f42091" [[package]] name = "libloading" diff --git a/Cargo.toml b/Cargo.toml index b388373a2aa..6450f5100c1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -336,7 +336,7 @@ jiff = { version = "0.2.10", default-features = false, features = [ "alloc", "tz-system", ] } -libc = "0.2.172" +libc = "0.2.178" linux-raw-sys = "0.12" lscolors = { version = "0.21.0", default-features = false, features = [ "gnu_legacy", @@ -677,3 +677,10 @@ format_push_string = "allow" flat_map_option = "allow" from_iter_instead_of_collect = "allow" large_types_passed_by_value = "allow" + +# df does not pass GNU tests https://github.com/uutils/coreutils/pull/8722 +[target.'cfg(not(target_os = "freebsd"))'.dependencies] +libc = "0.2.178" + +[target.'cfg(target_os = "freebsd")'.dependencies] +libc = "0.2.175"