diff options
author | Steve French <stfrench@microsoft.com> | 2018-06-14 23:30:56 -0400 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2018-06-15 03:38:08 -0400 |
commit | d819d298c7258849d56eb400be436aff3ba2aae2 (patch) | |
tree | 96fef88349ee28071238b70a3cd2b1c664510474 | |
parent | 115d5d288dc3368e3d6e7eb9ee213b342f072c23 (diff) |
smb3: fix corrupt path in subdirs on smb311 with posix
Signed-off-by: Steve French <stfrench@microsoft.com>
-rw-r--r-- | fs/cifs/smb2misc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/cifs/smb2misc.c b/fs/cifs/smb2misc.c index 0de87ca33e2e..3ff7cec2da81 100644 --- a/fs/cifs/smb2misc.c +++ b/fs/cifs/smb2misc.c | |||
@@ -454,7 +454,8 @@ cifs_convert_path_to_utf16(const char *from, struct cifs_sb_info *cifs_sb) | |||
454 | #ifdef CONFIG_CIFS_SMB311 | 454 | #ifdef CONFIG_CIFS_SMB311 |
455 | /* SMB311 POSIX extensions paths do not include leading slash */ | 455 | /* SMB311 POSIX extensions paths do not include leading slash */ |
456 | else if (cifs_sb_master_tlink(cifs_sb) && | 456 | else if (cifs_sb_master_tlink(cifs_sb) && |
457 | cifs_sb_master_tcon(cifs_sb)->posix_extensions) { | 457 | cifs_sb_master_tcon(cifs_sb)->posix_extensions && |
458 | (from[0] == '/')) { | ||
458 | start_of_path = from + 1; | 459 | start_of_path = from + 1; |
459 | } | 460 | } |
460 | #endif /* 311 */ | 461 | #endif /* 311 */ |