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 (parent:
e8b155a
)
Simplified one "if" that checks if one of the --FOO-dest options
author
Wayne Davison
<wayned@samba.org>
Sat, 15 Jan 2005 04:40:06 +0000
(
04:40
+0000)
committer
Wayne Davison
<wayned@samba.org>
Sat, 15 Jan 2005 04:40:06 +0000
(
04:40
+0000)
was specified.
options.c
patch
|
blob
|
blame
|
history
diff --git
a/options.c
b/options.c
index
9a021c3
..
edf7214
100644
(file)
--- a/
options.c
+++ b/
options.c
@@
-145,7
+145,7
@@
static int daemon_opt; /* sets am_daemon after option error-reporting */
static int modify_window_set;
static int compare_dest = 0;
static int basis_dir_cnt = 0;
static int modify_window_set;
static int compare_dest = 0;
static int basis_dir_cnt = 0;
-static char *dest_option;
+static char *dest_option
= NULL
;
static char *max_size_arg;
/** Local address to bind. As a character string because it's
static char *max_size_arg;
/** Local address to bind. As a character string because it's
@@
-958,7
+958,7
@@
int parse_arguments(int *argc, const char ***argv, int frommain)
am_server ? "server" : "client");
return 0;
#endif
am_server ? "server" : "client");
return 0;
#endif
- if (
compare_dest || copy_dest || link_dest
) {
+ if (
dest_option
) {
snprintf(err_buf, sizeof err_buf,
"--inplace does not yet work with %s\n",
dest_option);
snprintf(err_buf, sizeof err_buf,
"--inplace does not yet work with %s\n",
dest_option);