]> git.ipfire.org Git - thirdparty/util-linux.git/commit
nsenter: support empty environ[]
authorKarel Zak <kzak@redhat.com>
Thu, 7 Nov 2024 11:26:25 +0000 (12:26 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 7 Nov 2024 11:40:25 +0000 (12:40 +0100)
commitee8235a65edd01a4899f2557dc9aa2cb9c6de7bc
tree3c4e79e4b57c2b3a3d298a4578e7fb135edc753a
parent10a7ce1a048f7f5d9b610e37c271e0cf42cd3791
nsenter: support empty environ[]

There is no error when the /proc/#/environ file does not contain any
NAME=value items.

Backport from master (v2.41) branch.

Fixes: https://github.com/util-linux/util-linux/issues/3270
Signed-off-by: Karel Zak <kzak@redhat.com>
lib/env.c
sys-utils/nsenter.c