2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 14:25:49 +00:00

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

Pid is 10 chars maximum.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov
2014-09-12 16:43:00 +04:00
parent b99b76b045
commit 4eec4c6ea1

View File

@@ -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 */