[Samba] Folder name mangled

Jeremy Allison jra at samba.org
Sat Feb 20 16:38:02 UTC 2016

On Sat, Feb 20, 2016 at 01:54:35PM +0000, Chris Hastie wrote:
> Hi
> Within a folder that forms one of my shares is a folder named
> "MCMXC_a.D.". At least, that is what I see when I run `ls` at the
> terminal, or even `ls -b` or `ls -q`. That is also what I see from
> another Linux machine using cifs to mount the share. However, from
> Windows clients this particular folder appears as "M6HK2P~F". This
> share is also mounted as external storage in an ownCloud
> installation using, I believe, libsmbclient-php5. ownCloud also
> presents the name as "M6HK2P~F".
> Since there are no non-ascii characters in the original folder name
> I'm somewhat baffled as to what could be causing this
> transformation. Has anyone any ideas?

It's the '.' at the end of the filename that's causing
Samba to mangle the name. Names ending in dot are illegal
under Windows.

More information about the samba mailing list