Commit 984acfe1 authored by Steve French's avatar Steve French

[CIFS] prefixpath mounts to servers supporting posix paths used wrong slash

Acked-by: default avatarAlexander Bokovoy <abokovoy@ru.ibm.com>
Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
parent deb0420c
...@@ -1663,6 +1663,12 @@ void reset_cifs_unix_caps(int xid, struct cifsTconInfo * tcon, ...@@ -1663,6 +1663,12 @@ void reset_cifs_unix_caps(int xid, struct cifsTconInfo * tcon,
CIFS_MOUNT_POSIX_PATHS; 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)); cFYI(1,("Negotiate caps 0x%x",(int)cap));
#ifdef CONFIG_CIFS_DEBUG2 #ifdef CONFIG_CIFS_DEBUG2
if(cap & CIFS_UNIX_FCNTL_CAP) if(cap & CIFS_UNIX_FCNTL_CAP)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment