Filename ending with dot or blank
Heinrich.Mislik at univie.ac.at
Thu Sep 30 11:45:51 GMT 2004
please look at this:
Domain=[FS1] OS=[Unix] Server=[Samba 3.0.2a]
smb: \> cd dot
smb: \dot\> put foo.bar foo.
putting file foo.bar as \dot\foo. (0.0 kb/s) (average 0.0 kb/s)
smb: \dot\> put foo.bar "bar "
putting file foo.bar as \dot\bar (0.0 kb/s) (average 0.0 kb/s)
smb: \dot\> ls -l
. D 0 Thu Sep 30 13:12:13 2004
.. D 0 Thu Sep 30 13:11:30 2004
FY921Y~V A 0 Thu Sep 30 13:12:04 2004
bar A 0 Thu Sep 30 13:12:13 2004
64000 blocks of size 8192. 26482 blocks available
I know, why this happens, but it's inconsistent, since filenames
ending with blank are illegal in windows as well. The real
interesting part is, that doing the same against Windows displays the
korrekt filenames and you can handle them in the client (display with
more, delete etc.) without problems. The only way to access these
Files an the Windows side is using short names.
This also happens, when the client is Mac OS X, and one off my users
was really frustrated, when he wouldn't recognize most of his files.
Extend illegal names to trailing blanks and let me turn off this
behavior with an option.
Here are two links on that subject:
Zentraler Informatikdienst der Universitaet Wien
A-1010 Wien, Universitaetsstrasse 7
Tel.: (+43 1) 4277-14056, Fax: (+43 1) 4277-9140
More information about the samba-technical