adding a new log-format escape

Wayne Davison wayned at
Mon Jun 27 16:22:25 GMT 2005

On Mon, Jun 27, 2005 at 12:07:19AM -0600, Andrew Shewmaker wrote:
> +                       for (j = 0; j < SUM_LENGTH; j++ ) {
> +                               snprintf(buf2 + j * 2, sizeof buf2, fmt, file->u.sum[j]);

Not every entry will have a non-zero "sum" pointer (e.g. symlinks, dirs,
etc.), so you need to be sure to check for this and print some other
value ("N/A") for entries with a NULL pointer.


More information about the rsync mailing list