If the default behavior of name mangling is not sufficient, you can give Samba further instructions on how to behave using the
mangled
map
option. This option allows you to specify mapping patterns that can be used before or even in place of name mangling performed by Samba. For example:
[data]
mangled map =(*.database *.db) (*.class *.cls)
Here, Samba is instructed to search each file it encounters for characters that match the first pattern specified in the parenthesis and convert them to the modified second pattern in the parenthesis for display on an 8.3 client. This is useful in the event that name mangling converts the filename incorrectly or to a format that the client cannot understand readily. Patterns are separated by whitespaces.