If I create a directory in a share with a name ending with a space, its name is displayed incorrectly to the clients. I saw bug #3792 which seems to be related. Note that the directory is still accessible, I can rename it or delete it. Only the name is garbled. Tested with smbclient, OSX, and ubuntu nautilus as client software.
Names ending in a space are not valid Windows network names. Use unix extensions if you need to access the non-mangled name. Please re-open if you're using unix extensions and still can't access the name.
I'm not using windows. I'm using linux (ubuntu) and OSX. And I can access directories with names ending with a spaces, but their names are shown incorrectly.
Test case (even with linux server and linux client):
1. create a directory inside a share with the client naming it "Test1 "
2. list the content of the share
3. as you can see the directory is not shown as "Test1 " but as "TL8HL3~2"
Which Linux client ? smbclient ? cifsfs ? Or libsmbclient (via gnome or kde) ?
Only cifsfs turns on unix extensions by default. Try attachine via smbclient and typing the command "posix" before doing the ls. If this correctly shows the filename non-mangled then please close this bug.
The client I was using were specified in my first message.
Using "posix", smbclient returns the right name. Thanks for your time,