[CRIU] [PATCH] sockets: Fix file-bound sockets check

Pavel Emelyanov xemul at parallels.com
Wed Feb 8 03:51:53 EST 2012


Signed-off-by: Pavel Emelyanov <xemul at parallels.com>

---

diff --git a/sockets.c b/sockets.c
index 62d0afe..2b8a1b4 100644
--- a/sockets.c
+++ b/sockets.c
@@ -466,7 +466,7 @@ static int unix_collect_one(struct unix_diag_msg *m, struct rtattr **tb)
 			}
 
 			if ((st.st_ino != uv->udiag_vfs_ino) ||
-			    (st.st_dev == uv->udiag_vfs_dev)) {
+			    (st.st_dev != uv->udiag_vfs_dev)) {
 				/*
 				 * When a listen socket is bound to
 				 * unlinked file, we just drop his name,


More information about the CRIU mailing list