Skip to content

Commit

Permalink
[CIFS] prefixpath mounts to servers supporting posix paths used wrong…
Browse files Browse the repository at this point in the history
… slash

Acked-by: Alexander Bokovoy <abokovoy@ru.ibm.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
  • Loading branch information
Steve French committed Apr 26, 2007
1 parent deb0420 commit 984acfe
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion fs/cifs/connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 984acfe

Please sign in to comment.