mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-22 09:58:09 +00:00
show: check UTS ns fd before show
Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com> Acked-by: Pavel Emelyanov <xemul@parallels.com> Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
parent
a0ec1002b2
commit
65e8eb7a2d
@ -122,7 +122,8 @@ int try_show_namespaces(int ns_pid)
|
||||
if (!fdset)
|
||||
return -1;
|
||||
|
||||
show_utsns(fdset->fds[CR_FD_UTSNS]);
|
||||
if (fdset->fds[CR_FD_UTSNS] != -1)
|
||||
show_utsns(fdset->fds[CR_FD_UTSNS]);
|
||||
|
||||
close_cr_fdset(&fdset);
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user