Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d819d298 authored by Steve French's avatar Steve French
Browse files

smb3: fix corrupt path in subdirs on smb311 with posix

parent 115d5d28
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -454,7 +454,8 @@ cifs_convert_path_to_utf16(const char *from, struct cifs_sb_info *cifs_sb)
#ifdef CONFIG_CIFS_SMB311
	/* SMB311 POSIX extensions paths do not include leading slash */
	else if (cifs_sb_master_tlink(cifs_sb) &&
		 cifs_sb_master_tcon(cifs_sb)->posix_extensions) {
		 cifs_sb_master_tcon(cifs_sb)->posix_extensions &&
		 (from[0] == '/')) {
		start_of_path = from + 1;
	}
#endif /* 311 */