Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Handle EINTR in a couple places where we handle the --file-from I/O.
[rsync/rsync.git]
/
checksum.c
diff --git
a/checksum.c
b/checksum.c
index
fe8a64c
..
10cb366
100644
(file)
--- a/
checksum.c
+++ b/
checksum.c
@@
-56,11
+56,11
@@
void get_checksum2(char *buf, int32 len, char *sum)
if (protocol_version >= 30) {
uchar seedbuf[4];
md5_begin(&m);
if (protocol_version >= 30) {
uchar seedbuf[4];
md5_begin(&m);
+ md5_update(&m, (uchar *)buf, len);
if (checksum_seed) {
SIVAL(seedbuf, 0, checksum_seed);
md5_update(&m, seedbuf, 4);
}
if (checksum_seed) {
SIVAL(seedbuf, 0, checksum_seed);
md5_update(&m, seedbuf, 4);
}
- md5_update(&m, (uchar *)buf, len);
md5_result(&m, (uchar *)sum);
} else {
int32 i;
md5_result(&m, (uchar *)sum);
} else {
int32 i;