Bug 4022 - Trailing space mangling enhancement request
Trailing space mangling enhancement request
Product: Samba 3.0
Classification: Unclassified
Component: File Services
Other Other
: P3 normal
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2006-08-16 14:03 UTC by David Bosso
Modified: 2006-08-18 20:52 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description David Bosso 2006-08-16 14:03:04 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.

Comment 1 Jeremy Allison 2006-08-18 20:52:38 UTC
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.