On Wed, 12 Sep 2012 07:56:39 -0400
Jeff Layton <[email protected]> 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 <[email protected]>
> Signed-off-by: Jeff Layton <[email protected]>
> ---
>  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 <[email protected]>
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to