[CRIU] [PATCH 1/3] files: restore file descriptor flags on the correct fd

Andrey Vagin avagin at openvz.org
Mon Mar 18 13:40:07 EDT 2013


Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 files.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/files.c b/files.c
index 10f37c9..3464cba 100644
--- a/files.c
+++ b/files.c
@@ -671,7 +671,7 @@ static int receive_fd(int pid, struct fdinfo_list_entry *fle)
 	if (reopen_fd_as(fle->fe->fd, tmp) < 0)
 		return -1;
 
-	fcntl(tmp, F_SETFD, fle->fe->flags);
+	fcntl(fle->fe->fd, F_SETFD, fle->fe->flags);
 	return 0;
 }
 
-- 
1.7.11.7



More information about the CRIU mailing list