1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

who: fix --lookup

This closes #2181.

`who --lookup` is failing with a runtime panic (double free).
Since `crate::dns-lookup` already includes a safe wrapper for `getaddrinfo`
I used this crate instead of further debugging the existing code in
utmpx::canon_host().

* It was neccessary to remove the version constraint for libc in uucore.
This commit is contained in:
Jan Scheer 2021-05-13 10:17:57 +02:00
parent a5f8ca60b5
commit a4fc2b5106
7 changed files with 79 additions and 65 deletions

View file

@ -162,7 +162,6 @@ fn test_users() {
#[cfg(target_os = "linux")]
#[test]
#[ignore]
fn test_lookup() {
for opt in vec!["--lookup"] {
new_ucmd!()