[PATCH] libcsupport/mount: Return the error correctly

Chris Johns chrisj at rtems.org
Sun Sep 19 22:12:55 UTC 2021


I think this patch is wrong. The IMFS mount tests fail. It looks like the NFS
mount in LibBSD is wrong. I will look at a fix there.

On 18/9/21 3:18 pm, chrisj at rtems.org wrote:
> From: Chris Johns <chrisj at rtems.org>
> 
> Closes #4507
> ---
>  cpukit/libcsupport/src/mount.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/cpukit/libcsupport/src/mount.c b/cpukit/libcsupport/src/mount.c
> index a4f6423c03..2caa8099c1 100644
> --- a/cpukit/libcsupport/src/mount.c
> +++ b/cpukit/libcsupport/src/mount.c
> @@ -219,6 +219,8 @@ int mount(
>  
>          if ( rv != 0 ) {
>            free( mt_entry );
> +          errno = rv;
> +          rv = -1;
>          }
>        } else {
>          errno = ENOMEM;
> 


More information about the devel mailing list