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
b32fd634
Commit
b32fd634
authored
Aug 21, 2010
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid a crash with --append-verify when discarding the received data.
Fixes bug 6293.
parent
3b22184d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
receiver.c
receiver.c
+1
-1
No files found.
receiver.c
View file @
b32fd634
...
@@ -228,7 +228,7 @@ static int receive_data(int f_in, char *fname_r, int fd_r, OFF_T size_r,
...
@@ -228,7 +228,7 @@ static int receive_data(int f_in, char *fname_r, int fd_r, OFF_T size_r,
sum
.
flength
=
(
OFF_T
)
sum
.
count
*
sum
.
blength
;
sum
.
flength
=
(
OFF_T
)
sum
.
count
*
sum
.
blength
;
if
(
sum
.
remainder
)
if
(
sum
.
remainder
)
sum
.
flength
-=
sum
.
blength
-
sum
.
remainder
;
sum
.
flength
-=
sum
.
blength
-
sum
.
remainder
;
if
(
append_mode
==
2
)
{
if
(
append_mode
==
2
&&
mapbuf
)
{
for
(
j
=
CHUNK_SIZE
;
j
<
sum
.
flength
;
j
+=
CHUNK_SIZE
)
{
for
(
j
=
CHUNK_SIZE
;
j
<
sum
.
flength
;
j
+=
CHUNK_SIZE
)
{
if
(
INFO_GTE
(
PROGRESS
,
1
))
if
(
INFO_GTE
(
PROGRESS
,
1
))
show_progress
(
offset
,
total_size
);
show_progress
(
offset
,
total_size
);
...
...
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