Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=984acfe1cfb613257a15f30b3cf60ae7e4ed8f06
Commit:     984acfe1cfb613257a15f30b3cf60ae7e4ed8f06
Parent:     deb0420c6ffdee5608856ec3e8e65fcbea67d5d4
Author:     Steve French <[EMAIL PROTECTED]>
AuthorDate: Thu Apr 26 16:42:50 2007 +0000
Committer:  Steve French <[EMAIL PROTECTED]>
CommitDate: Thu Apr 26 16:42:50 2007 +0000

    [CIFS] prefixpath mounts to servers supporting posix paths used wrong slash
    
    Acked-by: Alexander Bokovoy <[EMAIL PROTECTED]>
    Signed-off-by: Steve French <[EMAIL PROTECTED]>
---
 fs/cifs/connect.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index c139fbd..c1af159 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)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to