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
9425918d
Commit
9425918d
authored
Jul 15, 2005
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Output a syntax error if both the source and destination are remote.
parent
cc637fcc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
NEWS
NEWS
+4
-0
main.c
main.c
+7
-0
No files found.
NEWS
View file @
9425918d
...
...
@@ -34,6 +34,10 @@ Changes since 2.6.5:
ended in either a trailing slash or a trailing "/.", and a non-existing
destination dir to tickle the bug in a recent version).
- If the user specifies a remote-host for both the source and destination,
we now output a syntax error rather than trying to open the destination
hostspec as a filename.
ENHANCEMENTS:
- Made the "max verbosity" setting in the rsyncd.conf file settable on a
...
...
main.c
View file @
9425918d
...
...
@@ -872,6 +872,13 @@ static int start_client(int argc, char *argv[])
argc
--
;
shell_path
=
check_for_hostspec
(
argv
[
0
],
&
shell_machine
,
&
rsync_port
);
if
(
shell_path
)
{
/* source is remote */
char
*
dummy1
;
int
dummy2
;
if
(
check_for_hostspec
(
argv
[
argc
],
&
dummy1
,
&
dummy2
))
{
rprintf
(
FERROR
,
"The source and destination cannot both be remote.
\n
"
);
exit_cleanup
(
RERR_SYNTAX
);
}
argv
++
;
if
(
filesfrom_host
&&
*
filesfrom_host
&&
strcmp
(
filesfrom_host
,
shell_machine
)
!=
0
)
{
...
...
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