Commit 4eec4c6e authored by Pavel Emelyanov's avatar Pavel Emelyanov

rst: Don't allocate PATH_MAX for /proc/self realink

Pid is 10 chars maximum.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent b99b76b0
......@@ -1357,7 +1357,7 @@ static int restore_task_with_children(void *_arg)
current = ca->item;
if (current != root_item) {
char buf[PATH_MAX];
char buf[12];
int fd;
/* Determine PID in CRIU's namespace */
......
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