]> 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)
committerKarel Zak <kzak@redhat.com>
Tue, 16 Apr 2024 09:06:50 +0000 (11:06 +0200)
commit476e88eacd9a6f9d45ca4ef61ab134645e5044c5
tree2cfa4392104c8012171520b300af53d9b745b4d3
parent532bd55ff160cdb16f2a871ce81be00bfa63d62a
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>
(cherry picked from commit f2a8b20d9c63f771d1fddd639ea1ec3fe034dc6d)
sys-utils/lsns.c