[CRIU] [crtools-bot for Pavel Emelyanov ] sockets: Fix file-bound
sockets check
Cyrill Gorcunov
gorcunov at openvz.org
Wed Feb 8 03:55:21 EST 2012
The commit is pushed to "master" and will appear on git://github.com/cyrillos/crtools.git
------>
commit 02c8793c6e76a38ba2e6331795746ebd7a80f503
Author: Pavel Emelyanov <xemul at parallels.com>
Date: Wed Feb 8 12:51:53 2012 +0400
sockets: Fix file-bound sockets check
Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
sockets.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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