From 8114adba69b87ac8c901b750c716d4d6ccb1ff8b Mon Sep 17 00:00:00 2001 From: Steve French Date: Thu, 26 Apr 2007 16:42:50 +0000 Subject: [PATCH] --- yaml --- r: 53962 b: refs/heads/master c: 984acfe1cfb613257a15f30b3cf60ae7e4ed8f06 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/cifs/connect.c | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index e2a1b4bcdb2a..9fa356eb52f8 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: deb0420c6ffdee5608856ec3e8e65fcbea67d5d4 +refs/heads/master: 984acfe1cfb613257a15f30b3cf60ae7e4ed8f06 diff --git a/trunk/fs/cifs/connect.c b/trunk/fs/cifs/connect.c index c139fbd24be9..c1af15995689 100644 --- a/trunk/fs/cifs/connect.c +++ b/trunk/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)