From 80c4e86e879c8061fe28177641b44287f34e019c Mon Sep 17 00:00:00 2001 From: Tycho Andersen Date: Mon, 22 Sep 2014 18:37:00 +0400 Subject: [PATCH] remap: don't try to remap other files in /proc We can't remap these files correctly anyway, so we should just return success if we find one of these files to remap. v2: don't try to remap accessible files in /proc Signed-off-by: Tycho Andersen Signed-off-by: Pavel Emelyanov --- files-reg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files-reg.c b/files-reg.c index 508263af6..9d7ed9275 100644 --- a/files-reg.c +++ b/files-reg.c @@ -635,6 +635,8 @@ static int check_path_remap(char *rpath, int plen, const struct fd_parms *parms, return dump_dead_process_remap(pid, rpath + 1, plen - 1, ost, lfd, id, nsid); } } + + return 0; } if (ost->st_nlink == 0)