[PATCH] mount.cifs: allow mounts to ipv6 capable servers (try #2)

Jeff Layton jlayton at redhat.com
Fri Dec 12 12:14:24 GMT 2008


On Mon, 10 Nov 2008 12:45:35 -0500
Jeff Layton <jlayton at redhat.com> wrote:

> The current name resolution scheme in mount.cifs is IPv4 only. Expand
> it to be protocol-independent. Also take advantage of the fact that
> getaddrinfo() returns a list of addresses and have mount.cifs try each
> in turn until it hits one that's reachable and allows the socket to
> connect.
> 
> This is the second attempt at this patch. The first one had a possible
> NULL pointer dereference that could occur if the user specified the
> address.
> 
> Signed-off-by: Jeff Layton <jlayton at redhat.com>
> ---
>  source3/client/mount.cifs.c |  223 +++++++++++++++++++++++-------------------
>  1 files changed, 122 insertions(+), 101 deletions(-)
> 

I've gone ahead and pushed a slight variant of this to master,
v3-3-test and v3-2-test. I left it out of v3-0-test since it's a pretty
big change and the later branches have diverged quite a bit from it.

Cheers,
-- 
Jeff Layton <jlayton at redhat.com>


More information about the samba-technical mailing list