[CRIU] [PATCH cr] proc: use bigger buffer for one line from
mountinfo
Andrey Vagin
avagin at openvz.org
Wed Sep 19 01:28:24 EDT 2012
Before 256 bytes were used for that, it may be not enough.
For example it was not enough for a NFS point on my test system.
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
proc_parse.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/proc_parse.c b/proc_parse.c
index 9790cce..76b6e2d 100644
--- a/proc_parse.c
+++ b/proc_parse.c
@@ -634,7 +634,7 @@ struct mount_info *parse_mountinfo(pid_t pid)
{
struct mount_info *list = NULL;
FILE *f;
- char str[256];
+ char str[1024];
snprintf(str, sizeof(str), "/proc/%d/mountinfo", pid);
f = fopen(str, "r");
--
1.7.1
More information about the CRIU
mailing list