Applied, thanks!

Mikhail Karpov, le ven. 23 oct. 2026 21:03:59 +0700, a ecrit:
> Hello,
> 
> Here is a small fix for the condition check in netfs_S_io_map for storeio.
> 
> Thanks,
> 
> -- 
> Mikhail Karpov

> From e4a2ab2e34d9650a5b4889f8dc49ff18b197176d Mon Sep 17 00:00:00 2001
> From: Mikhail Karpov <[email protected]>
> Date: Fri, 23 Oct 2026 20:42:51 +0700
> Subject: [PATCH 3/3] Fixed an issue with operator precedence in a condition
>  within storeio
> 
> ---
>  storeio/storeio.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/storeio/storeio.c b/storeio/storeio.c
> index 348afde..801cec2 100644
> --- a/storeio/storeio.c
> +++ b/storeio/storeio.c
> @@ -1153,7 +1153,7 @@ netfs_S_io_map (struct protid *user,
>    if (!user)
>      return EOPNOTSUPP;
>  
> -  if (user->po->openstat & (O_READ | O_WRITE) == 0)
> +  if ((user->po->openstat & (O_READ | O_WRITE)) == 0)
>      return EBADF;
>  
>    *wrobj = *rdobj = MACH_PORT_NULL;
> -- 
> 2.43.0
> 


-- 
Samuel
<v> je viens d'inventer mutt version magritte :D
<y> ?
<v> dans mutt
<v> tape "cceci" return

Reply via email to