summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorSteve French2007-04-26 18:42:50 +0200
committerSteve French2007-04-26 18:42:50 +0200
commit984acfe1cfb613257a15f30b3cf60ae7e4ed8f06 (patch)
tree398a3aee28093115e7fa3d3756c966d4c46b7c79 /fs
parent[CIFS] Update cifs version to 1.49 (diff)
downloadkernel-qcow2-linux-984acfe1cfb613257a15f30b3cf60ae7e4ed8f06.tar.gz
kernel-qcow2-linux-984acfe1cfb613257a15f30b3cf60ae7e4ed8f06.tar.xz
kernel-qcow2-linux-984acfe1cfb613257a15f30b3cf60ae7e4ed8f06.zip
[CIFS] prefixpath mounts to servers supporting posix paths used wrong slash
Acked-by: Alexander Bokovoy <abokovoy@ru.ibm.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/cifs/connect.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index c139fbd24be9..c1af15995689 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -1662,7 +1662,13 @@ void reset_cifs_unix_caps(int xid, struct cifsTconInfo * tcon,
CIFS_SB(sb)->mnt_cifs_flags |=
CIFS_MOUNT_POSIX_PATHS;
}
-
+
+ /* We might be setting the path sep back to a different
+ form if we are reconnecting and the server switched its
+ posix path capability for this share */
+ if(CIFS_SB(sb)->prepathlen > 0)
+ CIFS_SB(sb)->prepath[0] = CIFS_DIR_SEP(CIFS_SB(sb));
+
cFYI(1,("Negotiate caps 0x%x",(int)cap));
#ifdef CONFIG_CIFS_DEBUG2
if(cap & CIFS_UNIX_FCNTL_CAP)