check to see if the allowed time is over, which should make rsync exit more
consistently.
+ - Tweak the snprintf() in progress.c that turns the remaining time into a
+ HHHH:MM:SS value to avoid putting a -8 into the SS or MM spots when the
+ remaining seconds is so large that it overflows the integer arithmetic
+ trying to perform a modulus.
+
### ENHANCEMENTS:
- Use openssl's `-verify_hostname` option in the rsync-ssl script.
if (remain < 0)
strlcpy(rembuf, " ??:??:??", sizeof rembuf);
else {
- snprintf(rembuf, sizeof rembuf, "%4d:%02d:%02d",
- (int) (remain / 3600.0),
- (int) (remain / 60.0) % 60,
- (int) remain % 60);
+ snprintf(rembuf, sizeof rembuf, "%4lu:%02u:%02u",
+ (unsigned long) (remain / 3600.0),
+ (unsigned int) (remain / 60.0) % 60,
+ (unsigned int) remain % 60);
}
output_needs_newline = 0;