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:
8a9709d
)
Added the new --protocol option.
author
Wayne Davison
<wayned@samba.org>
Tue, 9 Sep 2003 15:58:56 +0000
(15:58 +0000)
committer
Wayne Davison
<wayned@samba.org>
Tue, 9 Sep 2003 15:58:56 +0000
(15:58 +0000)
options.c
patch
|
blob
|
blame
|
history
diff --git
a/options.c
b/options.c
index
52fc8c7
..
d040725
100644
(file)
--- a/
options.c
+++ b/
options.c
@@
-52,7
+52,7
@@
int ignore_times=0;
int delete_mode=0;
int delete_excluded=0;
int one_file_system=0;
int delete_mode=0;
int delete_excluded=0;
int one_file_system=0;
-int
remote_version=0
;
+int
protocol_version = PROTOCOL_VERSION
;
int sparse_files=0;
int do_compression=0;
int am_root=0;
int sparse_files=0;
int do_compression=0;
int am_root=0;
@@
-376,6
+376,7
@@
static struct poptOption long_options[] = {
{"files-from", 0, POPT_ARG_STRING, &files_from, 0, 0, 0 },
{"from0", '0', POPT_ARG_NONE, &eol_nulls, 0, 0, 0},
{"no-implied-dirs", 0, POPT_ARG_VAL, &implied_dirs, 0, 0, 0 },
{"files-from", 0, POPT_ARG_STRING, &files_from, 0, 0, 0 },
{"from0", '0', POPT_ARG_NONE, &eol_nulls, 0, 0, 0},
{"no-implied-dirs", 0, POPT_ARG_VAL, &implied_dirs, 0, 0, 0 },
+ {"protocol", 0, POPT_ARG_INT, &protocol_version, 0, 0, 0 },
#ifdef INET6
{0, '4', POPT_ARG_VAL, &default_af_hint, AF_INET, 0, 0 },
{0, '6', POPT_ARG_VAL, &default_af_hint, AF_INET6, 0, 0 },
#ifdef INET6
{0, '4', POPT_ARG_VAL, &default_af_hint, AF_INET, 0, 0 },
{0, '6', POPT_ARG_VAL, &default_af_hint, AF_INET6, 0, 0 },