Commit f8a12079 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

sysctl: zero is a valid number for a file descriptor

Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent d703f826
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment