2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 14:25:49 +00:00

uts: Don't fail on "show" if there is no data dumped

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
Cyrill Gorcunov
2012-02-02 21:18:32 +04:00
parent 995b0bf5e7
commit cff9654d62

View File

@@ -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");