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

Pavel Emelyanov xemul at parallels.com
Thu Jan 10 06:22:30 EST 2013


On 01/10/2013 02:00 PM, Andrey Vagin wrote:
> 
> 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)
> 


Applied


More information about the CRIU mailing list