Bug 5566 - Directories with names ending with a space are exported incorrectly
Summary: Directories with names ending with a space are exported incorrectly
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: nmbd (show other bugs)
Version: 3.0.28a
Hardware: Other Linux
: P3 normal
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
Depends on:
Reported: 2008-06-25 04:44 UTC by Gianpaolo Racca
Modified: 2008-06-25 18:05 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Gianpaolo Racca 2008-06-25 04:44:55 UTC
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.
Comment 1 Jeremy Allison 2008-06-25 11:07:16 UTC
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.
Comment 2 Gianpaolo Racca 2008-06-25 11:24:09 UTC
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"

Comment 3 Jeremy Allison 2008-06-25 11:28:23 UTC
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.

Comment 4 Gianpaolo Racca 2008-06-25 18:05:30 UTC
The client I was using were specified in my first message.
Using "posix", smbclient returns the right name. Thanks for your time,