[PATCH][SMB3] allow files to be created with backslash in file name
Jeremy Allison
jra at samba.org
Fri Jan 1 06:00:50 UTC 2021
On Thu, Dec 31, 2020 at 09:35:23PM -0600, Steve French via samba-technical wrote:
>
>This patch may be even more important to Samba, as alternative ways of
>storing these files can create more problems. Interestingly Samba
>server reports local files with backslashes in them over the wire
>without remapping, even though these are illegal in SMB3 which would
>cause confusion on the client(s). Has anyone tried Windows mounting
Samba should mangle names containing '\' to 8.3 names.
The code in is_legal_name() should catch names containing
'\' and report them as needing mapping to 8.3.
Indeed if I check this locally with smbclient I get
(for a share containing a file created with:
$ touch 'file with \ in it'
I see the file:
FI32YH~P
listed from smbclient -mSMB3
Check how you have Samba configured Steve.
More information about the samba-technical
mailing list