Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

smb3: fix corrupt path in subdirs on smb311 with posix

Signed-off-by: Steve French <stfrench@microsoft.com>

+2 -1
+2 -1
fs/cifs/smb2misc.c
··· 454 454 #ifdef CONFIG_CIFS_SMB311 455 455 /* SMB311 POSIX extensions paths do not include leading slash */ 456 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 459 start_of_path = from + 1; 459 460 } 460 461 #endif /* 311 */