[CRIU] [PATCH] cg: path buffer should be PATH_MAX long

Tycho Andersen tycho.andersen at canonical.com
Thu Aug 14 07:39:42 PDT 2014


Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>
---
 cgroup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cgroup.c b/cgroup.c
index 8308413..77bb12a 100644
--- a/cgroup.c
+++ b/cgroup.c
@@ -850,7 +850,7 @@ static int move_in_cgroup(CgSetEntry *se)
 	pr_info("Move into %d\n", se->id);
 	cg = get_service_fd(CGROUP_YARD);
 	for (i = 0; i < se->n_ctls; i++) {
-		char aux[1024];
+		char aux[PATH_MAX];
 		int fd, err, j, aux_off;
 		CgMemberEntry *ce = se->ctls[i];
 		CgControllerEntry *ctrl = NULL;
-- 
1.9.1



More information about the CRIU mailing list