patch for replacing non-printable chars in filenames
wayned at samba.org
Fri Apr 1 07:44:20 GMT 2005
On Thu, Mar 31, 2005 at 08:13:52AM -0800, Wayne Davison wrote:
> Appended is a patch that does the suggested escaping.
Actually, that patch didn't put the suggested 'x' in after the '\'.
After trying this a bit, I now think it would read better to use 3-digit
octal escaping. That would turn a \n into \012 instead of \x0a, for
instance. The changes to the prior patch are as easy as increasing the
'3's to '4's, changing the sprintf() format to "\\%03o", and fixing the
More information about the rsync