aboutsummaryrefslogtreecommitdiffstats
path: root/mount.cifs.c
diff options
context:
space:
mode:
authorGuenter Kukkukk <kukks@samba.org>2014-07-01 17:43:55 +0200
committerJeff Layton <jlayton@samba.org>2014-07-01 13:49:54 -0400
commit43fd65ba0fca85a86a79e84bb2bc42b531d858e6 (patch)
tree1a656a8a7fec6a9e76bd8718f71d9fca1b060a24 /mount.cifs.c
parent382ec63757c1d8d4d399d17ccc927c4897d4cfc9 (diff)
downloadcifs-utils-43fd65ba0fca85a86a79e84bb2bc42b531d858e6.tar.gz
cifs-utils-43fd65ba0fca85a86a79e84bb2bc42b531d858e6.tar.xz
cifs-utils-43fd65ba0fca85a86a79e84bb2bc42b531d858e6.zip
mount.cifs: on 2nd try mount.cifs must also uppercase "orig_dev"
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>
Diffstat (limited to 'mount.cifs.c')
-rw-r--r--mount.cifs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mount.cifs.c b/mount.cifs.c
index 497665d..3535096 100644
--- a/mount.cifs.c
+++ b/mount.cifs.c
@@ -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;