]> Pileus Git - ~andy/linux/blobdiff - fs/cifs/connect.c
cifs: add addr= mount option alias for ip=
[~andy/linux] / fs / cifs / connect.c
index 10151f8d849550be9d44497ac342190541907dbd..6298dc32adebd999d22adb708319e6adef457624 100644 (file)
@@ -958,7 +958,8 @@ cifs_parse_mount_options(char *options, const char *devname,
                                }
                                strcpy(vol->password, value);
                        }
-               } else if (strnicmp(data, "ip", 2) == 0) {
+               } else if (!strnicmp(data, "ip", 2) ||
+                          !strnicmp(data, "addr", 4)) {
                        if (!value || !*value) {
                                vol->UNCip = NULL;
                        } else if (strnlen(value, INET6_ADDRSTRLEN) <