The Samba-Bugzilla – Bug 1486
The '!' in the path names causes unpredictable results with directory listings
Last modified: 2010-04-26 03:36:09 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?
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.
If it's still broken in 3.5, please reopen.
3.0 isn't supported anymore.