Bug 1486 - The '!' in the path names causes unpredictable results with directory listings
Summary: The '!' in the path names causes unpredictable results with directory listings
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: File Services (show other bugs)
Version: 3.0.4
Hardware: x86 Linux
: P3 major
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
Depends on:
Reported: 2004-06-28 14:57 UTC by marko
Modified: 2010-04-26 03:36 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description marko 2004-06-28 14:57:45 UTC
This is a somewhat weird situation, so please bear with me through the description.

The following path:
"C:\! 01 Carte Geografiche\carte\"

When read with smbclient the windows share will only show 160 files in the
folder. When read on the windows machine it actually has 364.

When files from this path are copied over from the windows machine to the samba
shared directory (whether by windows copy or with cp from the smbmount to the
samba directory), only 339 files end up copied. When the windows machine then
looks at the files in the samba share only 105 files are shown.

If however I do a diff several times between the smbmount of the windows share
and the 339 files copied, I keep getting slightly different results. More and
more files keep getting reported as missing in the smbmount of the windows
share, whereas looking at the share on windows they are still there.

When I got rid of "! " at the start of the path, so that it was called "01 Carte
Geografiche" windows finally saw all 339 files in the samba share. Likewise,
getting rid of the "! " on the windows machine I could finally copy all 364
files without problems.

I'm not sure if it is just the "!" that is causing the problems. The "carte"
directory contains a lot of it_IT and de_DE locale filenames. And some filenames
are somewhat ridiculous (100-120 characters, lots of ,_-~! symbols and accents).

Let me know if you need more info?
Comment 1 Björn Jacke 2008-04-30 09:52:55 UTC
is this still an issue with recent samba releases? If you still have problems with it, can you please attach an archive with all the files, files may be truncated to 0 size, just the file names matter here.
Comment 2 Stefan Metzmacher 2010-04-26 03:36:09 UTC
If it's still broken in 3.5, please reopen.
3.0 isn't supported anymore.