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
925c517f
Commit
925c517f
authored
Jan 02, 2004
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved the setting of cleanup_got_literal so that we know if the
current file received some literal data yet or not.
parent
cc964a51
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
receiver.c
receiver.c
+2
-2
No files found.
receiver.c
View file @
925c517f
...
@@ -39,6 +39,7 @@ extern int do_progress;
...
@@ -39,6 +39,7 @@ extern int do_progress;
extern
char
*
backup_dir
;
extern
char
*
backup_dir
;
extern
char
*
backup_suffix
;
extern
char
*
backup_suffix
;
extern
int
backup_suffix_len
;
extern
int
backup_suffix_len
;
extern
int
cleanup_got_literal
;
static
struct
delete_list
{
static
struct
delete_list
{
DEV64_T
dev
;
DEV64_T
dev
;
...
@@ -255,8 +256,6 @@ static int receive_data(int f_in,struct map_struct *mapbuf,int fd,char *fname,
...
@@ -255,8 +256,6 @@ static int receive_data(int f_in,struct map_struct *mapbuf,int fd,char *fname,
show_progress
(
offset
,
total_size
);
show_progress
(
offset
,
total_size
);
if
(
i
>
0
)
{
if
(
i
>
0
)
{
extern
int
cleanup_got_literal
;
if
(
verbose
>
3
)
{
if
(
verbose
>
3
)
{
rprintf
(
FINFO
,
"data recv %d at %.0f
\n
"
,
rprintf
(
FINFO
,
"data recv %d at %.0f
\n
"
,
i
,(
double
)
offset
);
i
,(
double
)
offset
);
...
@@ -381,6 +380,7 @@ int recv_files(int f_in,struct file_list *flist,char *local_name,int f_gen)
...
@@ -381,6 +380,7 @@ int recv_files(int f_in,struct file_list *flist,char *local_name,int f_gen)
stats
.
num_transferred_files
++
;
stats
.
num_transferred_files
++
;
stats
.
total_transferred_size
+=
file
->
length
;
stats
.
total_transferred_size
+=
file
->
length
;
cleanup_got_literal
=
0
;
if
(
local_name
)
if
(
local_name
)
fname
=
local_name
;
fname
=
local_name
;
...
...
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