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
a39da29a
Commit
a39da29a
authored
Dec 24, 2006
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If the user specified --password-file without using daemon mode,
complain and die.
parent
794a0b6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
main.c
main.c
+7
-0
No files found.
main.c
View file @
a39da29a
...
@@ -68,6 +68,7 @@ extern char *basis_dir[];
...
@@ -68,6 +68,7 @@ extern char *basis_dir[];
extern
char
*
rsync_path
;
extern
char
*
rsync_path
;
extern
char
*
shell_cmd
;
extern
char
*
shell_cmd
;
extern
char
*
batch_name
;
extern
char
*
batch_name
;
extern
char
*
password_file
;
extern
char
curr_dir
[
MAXPATHLEN
];
extern
char
curr_dir
[
MAXPATHLEN
];
extern
struct
filter_list_struct
server_filter_list
;
extern
struct
filter_list_struct
server_filter_list
;
...
@@ -1130,6 +1131,12 @@ static int start_client(int argc, char *argv[])
...
@@ -1130,6 +1131,12 @@ static int start_client(int argc, char *argv[])
}
}
}
}
if
(
password_file
&&
!
daemon_over_rsh
)
{
rprintf
(
FERROR
,
"The --password-file option is used for "
"talking to an rsync daemon.
\n
"
);
exit_cleanup
(
RERR_SYNTAX
);
}
if
(
shell_machine
)
{
if
(
shell_machine
)
{
p
=
strrchr
(
shell_machine
,
'@'
);
p
=
strrchr
(
shell_machine
,
'@'
);
if
(
p
)
{
if
(
p
)
{
...
...
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