mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 22:05:36 +00:00
proc: use bigger buffer for one line from mountinfo
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@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
e3eaf90e8e
commit
df5f44425e
@@ -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");
|
||||
|
Reference in New Issue
Block a user