From 0066d5e813230987cfd1fd7ecac967a3f1b95f2c Mon Sep 17 00:00:00 2001 From: Pavel Emelyanov Date: Thu, 5 Jun 2014 20:15:59 +0400 Subject: [PATCH] restore: Open /proc/self/maps via helpers Signed-off-by: Pavel Emelyanov Acked-by: Andrew Vagin --- proc_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proc_parse.c b/proc_parse.c index e9fef08ac..c6076d796 100644 --- a/proc_parse.c +++ b/proc_parse.c @@ -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;