aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs')
-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,
1662 CIFS_SB(sb)->mnt_cifs_flags |= 1662 CIFS_SB(sb)->mnt_cifs_flags |=
1663 CIFS_MOUNT_POSIX_PATHS; 1663 CIFS_MOUNT_POSIX_PATHS;
1664 } 1664 }
1665 1665
1666 /* We might be setting the path sep back to a different
1667 form if we are reconnecting and the server switched its
1668 posix path capability for this share */
1669 if(CIFS_SB(sb)->prepathlen > 0)
1670 CIFS_SB(sb)->prepath[0] = CIFS_DIR_SEP(CIFS_SB(sb));
1671
1666 cFYI(1,("Negotiate caps 0x%x",(int)cap)); 1672 cFYI(1,("Negotiate caps 0x%x",(int)cap));
1667#ifdef CONFIG_CIFS_DEBUG2 1673#ifdef CONFIG_CIFS_DEBUG2
1668 if(cap & CIFS_UNIX_FCNTL_CAP) 1674 if(cap & CIFS_UNIX_FCNTL_CAP)