Blame SOURCES/0002-mount.cifs-on-2nd-try-mount.cifs-must-also-uppercase.patch

97823b
From 79b96cd5ed49095ee2b2d7219b5dfa3746505458 Mon Sep 17 00:00:00 2001
97823b
From: Guenter Kukkukk <kukks@samba.org>
97823b
Date: Tue, 1 Jul 2014 17:43:55 +0200
97823b
Subject: [PATCH 2/5] mount.cifs: on 2nd try mount.cifs must also uppercase
97823b
 "orig_dev"
97823b
97823b
Recent kernels now ignore "unc=..." mount option. mount.cifs, when
97823b
getting errno=ENXIO, retries the mount with uppercased hostname,
97823b
sharename and prefixpath in the "unc=..." mount option, which is ignored
97823b
now in the kernel. Used e.g. during OS/2 mounts, which fail now.
97823b
97823b
Also uppercase the now used "orig_dev" parameter.
97823b
97823b
Signed-off-by: Guenter Kukkukk <kukks@samba.org>
97823b
(cherry picked from commit 43fd65ba0fca85a86a79e84bb2bc42b531d858e6)
97823b
Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
97823b
---
97823b
 mount.cifs.c | 3 ++-
97823b
 1 file changed, 2 insertions(+), 1 deletion(-)
97823b
97823b
diff --git a/mount.cifs.c b/mount.cifs.c
97823b
index 497665d..3535096 100644
97823b
--- a/mount.cifs.c
97823b
+++ b/mount.cifs.c
97823b
@@ -2097,7 +2097,8 @@ mount_retry:
97823b
 			if (!already_uppercased &&
97823b
 			    uppercase_string(parsed_info->host) &&
97823b
 			    uppercase_string(parsed_info->share) &&
97823b
-			    uppercase_string(parsed_info->prefix)) {
97823b
+			    uppercase_string(parsed_info->prefix) &&
97823b
+			    uppercase_string(orig_dev)) {
97823b
 				fprintf(stderr,
97823b
 					"Retrying with upper case share name\n");
97823b
 				already_uppercased = 1;
97823b
-- 
97823b
2.5.5
97823b