[CRIU] [PATCH 02/15] sysctl: zero is a valid number for a file descriptor

Andrey Vagin avagin at openvz.org
Thu Jan 10 05:00:27 EST 2013


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

diff --git a/sysctl.c b/sysctl.c
index 92fc153..0a791e1 100644
--- a/sysctl.c
+++ b/sysctl.c
@@ -177,7 +177,7 @@ static int __sysctl_op(int dir, struct sysctl_req *req, int op)
 	int ret = -1;
 	int nr = 1;
 
-	if (dir > 0) {
+	if (dir >= 0) {
 		int flags;
 
 		if (op == CTL_READ)
-- 
1.7.11.7



More information about the CRIU mailing list