bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] console-client: Add another missing error check


From: Samuel Thibault
Subject: Re: [PATCH] console-client: Add another missing error check
Date: Tue, 12 Mar 2024 23:15:34 +0100
User-agent: NeoMutt/20170609 (1.8.3)

Applied both, thanks!

Etienne Brateau, le mar. 12 mars 2024 23:08:42 +0100, a ecrit:
> ---
>  console-client/trans.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/console-client/trans.c b/console-client/trans.c
> index 0c961c2f..b7d56cb0 100644
> --- a/console-client/trans.c
> +++ b/console-client/trans.c
> @@ -892,6 +892,8 @@ console_setup_node (char *path)
>      error (1, err, "Cannot map time");
>  
>    err = ports_create_port (netfs_control_class, netfs_port_bucket, sizeof 
> (struct port_info), &newpi);
> +  if (err)
> +    error (1, err, "Cannot create port");
>    right = ports_get_send_right (newpi);
>    err = file_set_translator (node, 0, FS_TRANS_EXCL | FS_TRANS_SET, 0, 0, 0,
>                            right, MACH_MSG_TYPE_COPY_SEND);
> -- 
> 2.44.0
> 
> 

-- 
Samuel
---
Pour une évaluation indépendante, transparente et rigoureuse !
Je soutiens la Commission d'Évaluation de l'Inria.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]