mount.cifs: reinstate ip= as an override for address resolution
authorJeff Layton <jlayton@samba.org>
Fri, 8 Oct 2010 19:11:57 +0000 (15:11 -0400)
committerJeff Layton <jlayton@samba.org>
Fri, 8 Oct 2010 19:11:57 +0000 (15:11 -0400)
commitd90691a283d0f2ed928476fc96970b1ef2a28662
tree5cd1d5d86e54aaf7acdc7fd0a1ae39b4c67e14e6
parentf2daa2a08bf8706f90e1154272c5bfe6279895cd
mount.cifs: reinstate ip= as an override for address resolution

The manpage says:

       ip=arg
           sets the destination IP address. This option is set automatically
           if the server name portion of the requested UNC name can be
           resolved so rarely needs to be specified by the user.

...but recent changes have made it not work anymore as an override if
someone specifies an ip= option as part of the mount options. Reinstate
that behavior by copying the ip= option verbatim into the addrlist of
the parsed options struct and then skipping the name resolution. That
should allow the ip= option to pass unadulterated to the kernel.

Signed-off-by: Jeff Layton <jlayton@samba.org>
mount.cifs.c