[CRIU] [crtools-bot] uts: Don't fail on "show" if there is no data
dumped
Cyrill Gorcunov
gorcunov at openvz.org
Thu Feb 2 12:22:21 EST 2012
The commit is pushed to "master" and will appear on git://github.com/cyrillos/crtools.git
------>
commit cff9654d62d55d766bada356f0f4b4301b13640b
Author: Cyrill Gorcunov <gorcunov at openvz.org>
Date: Thu Feb 2 21:18:32 2012 +0400
uts: Don't fail on "show" if there is no data dumped
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
uts_ns.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/uts_ns.c b/uts_ns.c
index 32f9d25..dfb4276 100644
--- a/uts_ns.c
+++ b/uts_ns.c
@@ -104,7 +104,7 @@ static void show_uts_string(int fd, char *n)
u32 len;
char str[65];
- ret = read_img(fd, &len);
+ ret = read_img_eof(fd, &len);
if (ret > 0) {
if (len >= sizeof(str)) {
pr_err("Corrupted hostname\n");
More information about the CRIU
mailing list