[CRIU] [PATCH 2/3] rst: Don't allocate PATH_MAX for /proc/self realink
Pavel Emelyanov
xemul at parallels.com
Fri Sep 12 05:43:03 PDT 2014
Pid is 10 chars maximum.
Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
---
cr-restore.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cr-restore.c b/cr-restore.c
index ee15b6c..6bdfa16 100644
--- a/cr-restore.c
+++ b/cr-restore.c
@@ -1358,7 +1358,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 */
--
1.8.4.2
More information about the CRIU
mailing list