Re: [iproute PATCH] ip: add error reporting when RTM_GETNSID failed

2020-10-12 Thread Stephen Hemminger
On Mon, 12 Oct 2020 15:55:55 +0200 Jan Engelhardt wrote: > + fprintf(stderr, "/proc/self/ns/net: %s. " > + "Continuing anyway.\n", strerror(errno)) WARNING: quoted string split across lines #95: FILE: ip/ipnetns.c:82: + fprin

[iproute PATCH] ip: add error reporting when RTM_GETNSID failed

2020-10-12 Thread Jan Engelhardt
`ip addr` when run under qemu-user-riscv64, fails. This likely is due to qemu-5.1 not doing translation of RTM_GETNSID calls. Aborting ip completely is not helpful for the user however. This patch reworks the error handling. Before: rtest:/ # ip a 2: host0@if4: mtu 1500 qdisc noqueue state UP g