mount.cifs: on 2nd try mount.cifs must also uppercase "orig_dev"
authorGuenter Kukkukk <kukks@samba.org>
Tue, 1 Jul 2014 15:43:55 +0000 (17:43 +0200)
committerJeff Layton <jlayton@samba.org>
Tue, 1 Jul 2014 17:49:54 +0000 (13:49 -0400)
Recent kernels now ignore "unc=..." mount option. mount.cifs, when
getting errno=ENXIO, retries the mount with uppercased hostname,
sharename and prefixpath in the "unc=..." mount option, which is ignored
now in the kernel. Used e.g. during OS/2 mounts, which fail now.

Also uppercase the now used "orig_dev" parameter.

Signed-off-by: Guenter Kukkukk <kukks@samba.org>
mount.cifs.c

index 497665dcd48086d52ae242e396fe06d77039cd66..353509622e5602b699ad69f65d93eede7816c890 100644 (file)
@@ -2097,7 +2097,8 @@ mount_retry:
                        if (!already_uppercased &&
                            uppercase_string(parsed_info->host) &&
                            uppercase_string(parsed_info->share) &&
-                           uppercase_string(parsed_info->prefix)) {
+                           uppercase_string(parsed_info->prefix) &&
+                           uppercase_string(orig_dev)) {
                                fprintf(stderr,
                                        "Retrying with upper case share name\n");
                                already_uppercased = 1;