Toggle navigation
Toggle navigation
This project
Loading...
Sign in
UT
/
clsync
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
redmine
2015-03-29 15:12:03 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7a54144e8e96c6a8d90388e16c111f22fd3ea8a2
7a54144e
1 parent
41283d13
Added detection of "rsync+ssh" destination protocol
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
main.c
main.c
View file @
7a54144
...
...
@@ -1513,7 +1513,19 @@ static int parse_parameter(ctx_t *ctx_p, uint16_t param_id, char *arg, paramsour
ctx_p
->
destproto
=
NULL
;
}
if
(
sep
!=
NULL
)
{
ctx_p
->
destdir
=
arg
;
if
(
sep
==
NULL
)
{
char
*
at_ptr
=
strchr
(
arg
,
'@'
);
char
*
cl_ptr
=
strchr
(
arg
,
':'
);
if
(
at_ptr
!=
NULL
&&
cl_ptr
!=
NULL
&&
at_ptr
<
cl_ptr
)
{
ctx_p
->
destproto
=
strdup
(
"rsync+ssh"
);
debug
(
5
,
"Destination proto is: %s (case #0)"
,
ctx_p
->
destproto
);
}
break
;
}
{
char
*
ptr
=
arg
;
while
(
ptr
<
sep
)
{
if
(
*
ptr
<
'a'
||
*
ptr
>
'z'
)
...
...
@@ -1526,9 +1538,9 @@ static int parse_parameter(ctx_t *ctx_p, uint16_t param_id, char *arg, paramsour
memcpy
(
ctx_p
->
destproto
,
arg
,
len
);
ctx_p
->
destproto
[
len
]
=
0
;
}
debug
(
5
,
"Destination proto is: %s (case #1)"
,
ctx_p
->
destproto
);
}
ctx_p
->
destdir
=
arg
;
break
;
}
case
SOCKETPATH
:
...
...
Please
register
or
login
to post a comment