]> git.ipfire.org Git - thirdparty/util-linux.git/commit
nsenter: use separate function to enter namespaces
authorKarel Zak <kzak@redhat.com>
Thu, 17 Oct 2024 10:17:10 +0000 (12:17 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 21 Oct 2024 12:36:38 +0000 (14:36 +0200)
commited0da317e078bc2c86ccf4d882b3867edd726253
tree3a76ad3315047a74318e8da7b5dfc349d9d41864
parentdf321c9e038bccf6c99f82a1687e11a075635c93
nsenter: use separate function to enter namespaces

Remove the complicated for-loop from the main() function and instead
use a separate function to enable namespaces based on a given mask.

Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/nsenter.c