[CRIU] [crtools-bot for Kinsbursky Stanislav ] show: check UTS ns
fd before show
Cyrill Gorcunov
gorcunov at openvz.org
Thu Feb 9 03:58:53 EST 2012
The commit is pushed to "master" and will appear on git://github.com/cyrillos/crtools.git
------>
commit 65e8eb7a2d78bfe02173fca78ce41d09d1063b2d
Author: Kinsbursky Stanislav <skinsbursky at openvz.org>
Date: Wed Feb 8 17:29:54 2012 +0300
show: check UTS ns fd before show
Signed-off-by: Stanislav Kinsbursky <skinsbursky at parallels.com>
Acked-by: Pavel Emelyanov <xemul at parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
namespaces.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/namespaces.c b/namespaces.c
index 75ae142..882e575 100644
--- a/namespaces.c
+++ b/namespaces.c
@@ -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;
More information about the CRIU
mailing list