The Samba-Bugzilla – Bug 4022
Trailing space mangling enhancement request
Last modified: 2006-08-18 20:52:38 UTC
I've just upgraded from a version before Bug 2769 was fixed, so I'm now seeing files/directories with trailing spaces get mangled.
I understand why this is a good thing, but the Mac OS X client handles trailing spaces without problems, and puts no restrictions on their creation. This wreaks havoc because a file can be saved or renamed with a trailing space, and it's instantly mangled into something unrecognizable.
In the absence of a fix from Apple, I'm wondering if files with trailing spaces can be handled similarly to trailing periods where the characters are stripped instead of the whole name mangled.
We're not going to fix this in the smbd server as we already have a fix, it's just that Apple doesn't use it. We don't strip trailing period characters either. The correct fix for this problem is for the Mac client to adopt the CIFS UNIX extensions. As soon as it does so you will see all you UNIX filenames in all their glory, including trailing ' ', '.' and embedded ':' characters.
Please open a bug with Apple on this.