Problems with files with a trailing dot

Martin Sheppard martins at scurvy.dhn.csiro.au
Mon Feb 14 02:17:27 GMT 2000


Hi,

I am usingn Samba 2.0.6 and have found some strange behaviour when Samba
encounters unix filesnames which end with a dot from Windows 98 clientse.
Samba will pass on such a name unmodified to Windows, but at some point
Windows is stripping off the final dot from the name. This can be observed
by creating two directories on a samba share, one called "test" and one
caleed "test.". When viewed from a Windows 98 client, it will give the
contents of the "test" directory even when viewing the "test." directory.
Strangely enough, windows seems to strip the trailing dot when deleting a
file, deleting a directory and viewing a directory, but not when opening a
file.

The solution to this seems easy enough - just add a test for files
ending with a dot to the illegal name test, so they will be mangled
along with other files with illegal names.

Martin.





More information about the samba mailing list