mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-02 07:15:31 +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:
2
uts_ns.c
2
uts_ns.c
@@ -104,7 +104,7 @@ static void show_uts_string(int fd, char *n)
|
|||||||
u32 len;
|
u32 len;
|
||||||
char str[65];
|
char str[65];
|
||||||
|
|
||||||
ret = read_img(fd, &len);
|
ret = read_img_eof(fd, &len);
|
||||||
if (ret > 0) {
|
if (ret > 0) {
|
||||||
if (len >= sizeof(str)) {
|
if (len >= sizeof(str)) {
|
||||||
pr_err("Corrupted hostname\n");
|
pr_err("Corrupted hostname\n");
|
||||||
|
Reference in New Issue
Block a user