[CRIU] [PATCH] restore: use /proc/self/mountinfo for collecting mounts fo the root task
Cyrill Gorcunov
gorcunov at gmail.com
Fri Aug 8 03:32:44 PDT 2014
On Fri, Aug 08, 2014 at 02:30:03PM +0400, Andrew Vagin wrote:
> > > - snprintf(str, sizeof(str), "/proc/%d/mountinfo", pid);
> > > + if (pid == PROC_SELF)
> > > + snprintf(str, sizeof(str), "/proc/self/mountinfo");
> >
> > Really? Why simply not use "/proc/self/mountinfo" here, why add
> > additional snprintf (without even format string)?
>
> A-a-a-a-a-a-a!!!
Muahahah ;-)
More information about the CRIU
mailing list