Re: [PATCH] mount.cifs: running out of addresses is not a system error

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

 



On Wed, 12 Sep 2012 07:56:39 -0400
Jeff Layton <jlayton@xxxxxxxxx> wrote:

> This patch fixes a minor regression. It used to be that when the mount
> helper would run out of addresses that it would return EX_FAIL to
> userspace. It now returns EX_SYSERR which is incorrect. Reinstate
> the correct error code.
> 
> Reported-by: Ales Zelinka <azelinka@xxxxxxxxxx>
> Signed-off-by: Jeff Layton <jlayton@xxxxxxxxx>
> ---
>  mount.cifs.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/mount.cifs.c b/mount.cifs.c
> index 3fd472a..7ee859b 100644
> --- a/mount.cifs.c
> +++ b/mount.cifs.c
> @@ -2119,7 +2119,7 @@ int main(int argc, char **argv)
>  mount_retry:
>  	if (!currentaddress) {
>  		fprintf(stderr, "Unable to find suitable address.\n");
> -		rc = EX_SYSERR;
> +		rc = EX_FAIL;
>  		goto mount_exit;
>  	}
>  	strlcpy(options, "ip=", options_size);

Committed...
-- 
Jeff Layton <jlayton@xxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux