Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
794a0b6
)
If the user specified --password-file without using daemon mode,
author
Wayne Davison
<wayned@samba.org>
Sun, 24 Dec 2006 00:58:21 +0000
(
00:58
+0000)
committer
Wayne Davison
<wayned@samba.org>
Sun, 24 Dec 2006 00:58:21 +0000
(
00:58
+0000)
complain and die.
main.c
patch
|
blob
|
blame
|
history
diff --git
a/main.c
b/main.c
index
6d58dd8
..
fccf627
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-68,6
+68,7
@@
extern char *basis_dir[];
extern char *rsync_path;
extern char *shell_cmd;
extern char *batch_name;
extern char *rsync_path;
extern char *shell_cmd;
extern char *batch_name;
+extern char *password_file;
extern char curr_dir[MAXPATHLEN];
extern struct filter_list_struct server_filter_list;
extern char curr_dir[MAXPATHLEN];
extern struct filter_list_struct server_filter_list;
@@
-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) {
p = strrchr(shell_machine,'@');
if (p) {
if (shell_machine) {
p = strrchr(shell_machine,'@');
if (p) {