[PATCH] Allow . to end a filename, use real unicode for fnmatch().

Jeremy Allison jra at samba.org
Sun Jul 27 22:37:04 GMT 2003


On Sun, Jul 27, 2003 at 05:33:34PM +1000, Andrew Bartlett wrote:
> 
> Using smbclient, I can 'put foo.' and 'put Makefile', and get them both
> using *only* their original names (adding/deleting dots).

Ok, the current code that disallows filenames ending in '.' (ie.
classifies them as an illegal name to be mangled) should remain.

The fact that they are not flagged as illegal on w2k is more a
bug on Microsoft's part due to them not testing with any other
clients than their own than a valid interpretation of the protocol.

I'll leave it as an excercise for the reader to see if this
can be turned into a DOS attack :-).

Their clients silently truncate a trailing '.' from a filename
so they will never see this on the wire.

Mangling names ending in '.' allows UNIX filenames to be
seen and manipulated that otherwise would not be accessible to
a Microsoft client.

Jeremy.



More information about the samba-technical mailing list