DO NOT REPLY [Bug 7816] get_tmpname() can create invalid UTF-8 filenames

samba-bugs at samba.org samba-bugs at samba.org
Wed Nov 24 12:35:38 MST 2010


https://bugzilla.samba.org/show_bug.cgi?id=7816


wayned at samba.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED




------- Comment #2 from wayned at samba.org  2010-11-24 13:35 CST -------
Most of the time the name won't be trimmed, as it only happens if the path is
long enough that the temp name needs more room to add the unique suffix.  The
attached patch is a simple heuristic that triggers if the name gets trimmed and
there is a high-bit character as both the first-trimmed character and the last
retained character.  In such a case, we'll just make the name shorter (removing
all dangling high-bit characters).  If we end up with just a leading dot for
the name, the trimming will stop, and the name will be kinda sad, but still
usable.


-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.


More information about the rsync mailing list