mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +00:00
restore: Open /proc/self/maps via helpers
Signed-off-by: Pavel Emelyanov <xemul@parallels.com> Acked-by: Andrew Vagin <avagin@parallels.com>
This commit is contained in:
@@ -243,7 +243,7 @@ int parse_self_maps_lite(struct vm_area_list *vms)
|
||||
|
||||
vm_area_list_init(vms);
|
||||
|
||||
maps = fopen("/proc/self/maps", "r");
|
||||
maps = fopen_proc(PROC_SELF, "maps");
|
||||
if (maps == NULL) {
|
||||
pr_perror("Can't open self maps");
|
||||
return -1;
|
||||
|
Reference in New Issue
Block a user