[CRIU] [PATCH] Fix dumping of /proc folder

Andrei Tuicu andrei.tuicu at gmail.com
Tue Jun 28 04:33:37 PDT 2016


Please ignore this, sent the old one again. Sorry for the noise. I am new
to sending patches over the mailing list. :)

Thanks,
Andrei

2016-06-28 14:31 GMT+03:00 Andrei Tuicu <andrei.tuicu at gmail.com>:

> 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: Andrei Tuicu <andrei.tuicu at gmail.com>
> ---
>  criu/files-reg.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/criu/files-reg.c b/criu/files-reg.c
> index 899dcf6..0fcef6d 100644
> --- a/criu/files-reg.c
> +++ b/criu/files-reg.c
> @@ -975,8 +975,8 @@ static int check_path_remap(struct fd_link *link,
> const struct fd_parms *parms,
>                 if (!start)
>                         return -1;
>                 start = strstr(start + 1, "/");
> -               if (!start)
> -                       return -1;
> +               if (!start) /* it's /proc */
> +                       return 0;
>                 pid = strtol(start + 1, &end, 10);
>
>                 /* If strtol didn't convert anything, then we are looking
> at
> --
> 2.5.4 (Apple Git-61)
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/criu/attachments/20160628/035c4da9/attachment.html>


More information about the CRIU mailing list