]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsns: tolerate lsns_ioctl(fd, NS_GET_{PARENT,USERNS}) failing with ENOSYS
authorMasatake YAMATO <yamato@redhat.com>
Sat, 13 Apr 2024 16:40:14 +0000 (01:40 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Sun, 14 Apr 2024 17:05:32 +0000 (02:05 +0900)
commitf2a8b20d9c63f771d1fddd639ea1ec3fe034dc6d
treef6a7805511a000a17e242c8214dc65d1ae65c6e6
parentc5eccab6361c376a3f7945098c87ea9a4c5dd92a
lsns: tolerate lsns_ioctl(fd, NS_GET_{PARENT,USERNS}) failing with ENOSYS

With the original code, "lsns/filedesc" test case failed on
"build (qemu-user, s390x)" and "build (qemu-user, riscv64)".

On the platforms, lsns_ioctl(fd, NS_GET_{PARENT,USERNS}) failed
with ENOSYS. The error stoped the iteration for gathering
information from /proc/[0-9]+. As a result, lsns printed
nothing. We don't expect this behavior.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
sys-utils/lsns.c