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
9a4a237e
Commit
9a4a237e
authored
Sep 16, 2005
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweaked the code a little in the always_checksum handling of the
send & receive file-list functions.
parent
5efbddba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
14 deletions
+8
-14
flist.c
flist.c
+8
-14
No files found.
flist.c
View file @
9a4a237e
...
...
@@ -480,19 +480,16 @@ void send_file_entry(struct file_struct *file, int f, unsigned short base_flags)
}
#endif
if
(
always_checksum
)
{
if
(
always_checksum
&&
(
S_ISREG
(
mode
)
||
protocol_version
<
28
)
)
{
char
*
sum
;
int
slen
=
protocol_version
<
21
?
2
:
MD4_SUM_LENGTH
;
if
(
S_ISREG
(
mode
))
sum
=
file
->
u
.
sum
;
else
if
(
protocol_version
<
28
)
{
else
{
/* Prior to 28, we sent a useless set of nulls. */
sum
=
empty_sum
;
}
else
sum
=
NULL
;
if
(
sum
)
{
write_buf
(
f
,
sum
,
protocol_version
<
21
?
2
:
MD4_SUM_LENGTH
);
}
write_buf
(
f
,
sum
,
slen
);
}
strlcpy
(
lastname
,
fname
,
MAXPATHLEN
);
...
...
@@ -708,20 +705,17 @@ static struct file_struct *receive_file_entry(struct file_list *flist,
}
#endif
if
(
always_checksum
)
{
if
(
always_checksum
&&
(
sum_len
||
protocol_version
<
28
)
)
{
char
*
sum
;
int
slen
=
protocol_version
<
21
?
2
:
MD4_SUM_LENGTH
;
if
(
sum_len
)
{
file
->
u
.
sum
=
sum
=
bp
;
/*bp += sum_len;*/
}
else
if
(
protocol_version
<
28
)
{
}
else
{
/* Prior to 28, we get a useless set of nulls. */
sum
=
empty_sum
;
}
else
sum
=
NULL
;
if
(
sum
)
{
read_buf
(
f
,
sum
,
protocol_version
<
21
?
2
:
MD4_SUM_LENGTH
);
}
read_buf
(
f
,
sum
,
slen
);
}
if
(
!
preserve_perms
)
{
...
...
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