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
cfe39780
Commit
cfe39780
authored
Nov 10, 2005
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the new checksum_len value instead of recomputing the
right value for the current protocol_version over and over.
parent
7752df41
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
generator.c
generator.c
+2
-2
No files found.
generator.c
View file @
cfe39780
...
...
@@ -69,6 +69,7 @@ extern int ignore_timeout;
extern
int
protocol_version
;
extern
int
fuzzy_basis
;
extern
int
always_checksum
;
extern
int
checksum_len
;
extern
char
*
partial_dir
;
extern
char
*
basis_dir
[];
extern
int
compare_dest
;
...
...
@@ -384,8 +385,7 @@ static int unchanged_file(char *fn, struct file_struct *file, STRUCT_STAT *st)
if
(
always_checksum
&&
S_ISREG
(
st
->
st_mode
))
{
char
sum
[
MD4_SUM_LENGTH
];
file_checksum
(
fn
,
sum
,
st
->
st_size
);
return
memcmp
(
sum
,
file
->
u
.
sum
,
protocol_version
<
21
?
2
:
MD4_SUM_LENGTH
)
==
0
;
return
memcmp
(
sum
,
file
->
u
.
sum
,
checksum_len
)
==
0
;
}
if
(
size_only
)
...
...
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