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
57b12568
Commit
57b12568
authored
Mar 09, 2005
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Complain if a feature that requires protocol 29 doesn't get it.
parent
f9a9f547
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
compat.c
compat.c
+18
-1
No files found.
compat.c
View file @
57b12568
...
...
@@ -30,10 +30,13 @@ int remote_protocol = 0;
extern
int
verbose
;
extern
int
am_server
;
extern
int
am_sender
;
extern
int
inplace
;
extern
int
fuzzy_basis
;
extern
int
read_batch
;
extern
int
checksum_seed
;
extern
int
basis_dir_cnt
;
extern
int
protocol_version
;
extern
char
*
dest_option
;
void
setup_protocol
(
int
f_out
,
int
f_in
)
{
...
...
@@ -77,11 +80,25 @@ void setup_protocol(int f_out,int f_in)
if
(
fuzzy_basis
&&
protocol_version
<
29
)
{
rprintf
(
FERROR
,
"--fuzzy requres protocol 29 or higher (negotiated %d).
\n
"
,
"--fuzzy requ
i
res protocol 29 or higher (negotiated %d).
\n
"
,
protocol_version
);
exit_cleanup
(
RERR_PROTOCOL
);
}
if
(
basis_dir_cnt
&&
inplace
&&
protocol_version
<
29
)
{
rprintf
(
FERROR
,
"%s with --inplace requires protocol 29 or higher (negotiated %d).
\n
"
,
dest_option
,
protocol_version
);
exit_cleanup
(
RERR_PROTOCOL
);
}
if
(
basis_dir_cnt
>
1
&&
protocol_version
<
29
)
{
rprintf
(
FERROR
,
"Multiple %s options requires protocol 29 or higher (negotiated %d).
\n
"
,
dest_option
,
protocol_version
);
exit_cleanup
(
RERR_PROTOCOL
);
}
if
(
am_server
)
{
if
(
!
checksum_seed
)
checksum_seed
=
time
(
NULL
);
...
...
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