Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath-rsync
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liblongpath
liblongpath-rsync
Commits
536541d5
Commit
536541d5
authored
Jan 05, 1999
by
Andrew Tridgell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved the block length mismatch code to another part of the loop.
parent
496d9272
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
match.c
match.c
+6
-3
No files found.
match.c
View file @
536541d5
...
...
@@ -176,16 +176,19 @@ static void hash_search(int f,struct sum_struct *s,
sum
=
(
s1
&
0xffff
)
|
(
s2
<<
16
);
tag_hits
++
;
for
(;
j
<
s
->
count
&&
targets
[
j
].
t
==
t
;
j
++
)
{
int
i
=
targets
[
j
].
i
;
int
l
,
i
=
targets
[
j
].
i
;
if
(
sum
!=
s
->
sums
[
i
].
sum1
||
s
->
sums
[
i
].
len
>
(
len
-
offset
)
)
continue
;
if
(
sum
!=
s
->
sums
[
i
].
sum1
)
continue
;
/* also make sure the two blocks are the same length */
l
=
MIN
(
s
->
n
,
len
-
offset
);
if
(
l
!=
s
->
sums
[
i
].
len
)
continue
;
if
(
verbose
>
3
)
rprintf
(
FINFO
,
"potential match at %d target=%d %d sum=%08x
\n
"
,
(
int
)
offset
,
j
,
i
,
sum
);
if
(
!
done_csum2
)
{
int
l
=
MIN
(
s
->
n
,
len
-
offset
);
map
=
(
schar
*
)
map_ptr
(
buf
,
offset
,
l
);
get_checksum2
((
char
*
)
map
,
l
,
sum2
);
done_csum2
=
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment