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
007e3c0e
Commit
007e3c0e
authored
Jul 22, 2004
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Need to output the "failed verification" error before sending the
MSG_REDO so that the output comes out in the right order.
parent
e2bc4126
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
15 deletions
+17
-15
receiver.c
receiver.c
+17
-15
No files found.
receiver.c
View file @
007e3c0e
...
...
@@ -552,25 +552,27 @@ int recv_files(int f_in, struct file_list *flist, char *local_name)
cleanup_disable
();
if
(
!
recv_ok
)
{
int
msgtype
;
char
*
redostr
;
int
msgtype
=
csum_length
==
SUM_LENGTH
||
read_batch
?
FERROR
:
FINFO
;
if
(
msgtype
==
FERROR
||
verbose
)
{
char
*
errstr
,
*
redostr
;
char
*
keptstr
=
keep_partial
||
inplace
?
"retain"
:
"discard"
;
if
(
msgtype
==
FERROR
)
{
errstr
=
"ERROR"
;
redostr
=
""
;
}
else
{
errstr
=
"WARNING"
;
redostr
=
" (will try again)"
;
}
rprintf
(
msgtype
,
"%s: %s failed verification -- update %sed%s.
\n
"
,
errstr
,
fname
,
keptstr
,
redostr
);
}
if
(
csum_length
!=
SUM_LENGTH
)
{
char
buf
[
4
];
SIVAL
(
buf
,
0
,
i
);
send_msg
(
MSG_REDO
,
buf
,
4
);
msgtype
=
read_batch
?
FERROR
:
FINFO
;
redostr
=
read_batch
?
" Redo doubtful."
:
" Redo pending."
;
}
else
{
msgtype
=
FERROR
;
redostr
=
""
;
}
if
(
verbose
||
read_batch
)
{
rprintf
(
msgtype
,
"%s: %s failed verification. Update %sed.%s
\n
"
,
msgtype
==
FERROR
?
"ERROR"
:
"WARNING"
,
fname
,
keep_partial
||
inplace
?
"retain"
:
"discard"
,
redostr
);
}
}
}
...
...
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