Commit 3dfb7854 authored by Andrei Tuicu's avatar Andrei Tuicu Committed by Pavel Emelyanov

Fix dumping of /proc folder

CRIU fails to dump processes that have a file descriptor pointing
to the /proc folder, because check_path_remap returns error code
in that case. Fix: return 0 instead.
Signed-off-by: 's avatarAndrei Tuicu <andrei.tuicu@gmail.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 00ad3112
...@@ -975,8 +975,8 @@ static int check_path_remap(struct fd_link *link, const struct fd_parms *parms, ...@@ -975,8 +975,8 @@ static int check_path_remap(struct fd_link *link, const struct fd_parms *parms,
if (!start) if (!start)
return -1; return -1;
start = strstr(start + 1, "/"); start = strstr(start + 1, "/");
if (!start) if (!start) /* it's /proc */
return -1; return 0;
pid = strtol(start + 1, &end, 10); pid = strtol(start + 1, &end, 10);
/* If strtol didn't convert anything, then we are looking at /* If strtol didn't convert anything, then we are looking at
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment