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
13c7bcbb
Commit
13c7bcbb
authored
Jan 16, 2004
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Output an error before we die if we get a wacko message from the receiver.
parent
d48c8065
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
io.c
io.c
+7
-2
No files found.
io.c
View file @
13c7bcbb
...
...
@@ -208,13 +208,17 @@ static void read_msg_fd(void)
switch
(
tag
)
{
case
MSG_DONE
:
if
(
len
!=
0
)
if
(
len
!=
0
)
{
rprintf
(
FERROR
,
"invalid message %d:%d
\n
"
,
tag
,
len
);
exit_cleanup
(
RERR_STREAMIO
);
}
redo_list_add
(
-
1
);
break
;
case
MSG_REDO
:
if
(
len
!=
4
)
if
(
len
!=
4
)
{
rprintf
(
FERROR
,
"invalid message %d:%d
\n
"
,
tag
,
len
);
exit_cleanup
(
RERR_STREAMIO
);
}
read_loop
(
fd
,
buf
,
4
);
redo_list_add
(
IVAL
(
buf
,
0
));
break
;
...
...
@@ -231,6 +235,7 @@ static void read_msg_fd(void)
}
break
;
default:
rprintf
(
FERROR
,
"unknown message %d:%d
\n
"
,
tag
,
len
);
exit_cleanup
(
RERR_STREAMIO
);
}
...
...
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