mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
[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>
This commit is contained in:
parent
deb0420c6f
commit
984acfe1cf
1 changed files with 7 additions and 1 deletions
|
@ -1663,6 +1663,12 @@ void reset_cifs_unix_caps(int xid, struct cifsTconInfo * tcon,
|
|||
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)
|
||||
|
|
Loading…
Reference in a new issue