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
24d677fc
Commit
24d677fc
authored
Aug 22, 2007
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't omit the -4/-6 options if no IPv6 support was compiled into
rsync. Just make them a no-op.
parent
65a22a5f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
10 deletions
+15
-10
options.c
options.c
+7
-10
rsync.yo
rsync.yo
+8
-0
No files found.
options.c
View file @
24d677fc
...
...
@@ -122,10 +122,15 @@ long block_size = 0; /* "long" because popt can't set an int32. */
char
*
skip_compress
=
NULL
;
/** Network address family. **/
int
default_af_hint
#ifdef INET6
int
default_af_hint
=
0
;
/* Any protocol */
=
0
;
/* Any protocol */
#else
int
default_af_hint
=
AF_INET
;
/* Must use IPv4 */
=
AF_INET
;
/* Must use IPv4 */
# ifdef AF_INET6
# undef AF_INET6
# endif
# define AF_INET6 AF_INET
/* make -6 option a no-op */
#endif
/** Do not go into the background when run as --daemon. Good
...
...
@@ -414,10 +419,8 @@ void usage(enum logcode F)
#ifdef ICONV_OPTION
rprintf
(
F
,
" --iconv=CONVERT_SPEC request charset conversion of filesnames
\n
"
);
#endif
#ifdef INET6
rprintf
(
F
,
" -4, --ipv4 prefer IPv4
\n
"
);
rprintf
(
F
,
" -6, --ipv6 prefer IPv6
\n
"
);
#endif
rprintf
(
F
,
" --version print version number
\n
"
);
rprintf
(
F
,
"(-h) --help show this help (-h works with no other options)
\n
"
);
...
...
@@ -593,10 +596,8 @@ static struct poptOption long_options[] = {
#ifdef ICONV_OPTION
{
"iconv"
,
0
,
POPT_ARG_STRING
,
&
iconv_opt
,
0
,
0
,
0
},
#endif
#ifdef INET6
{
"ipv4"
,
'4'
,
POPT_ARG_VAL
,
&
default_af_hint
,
AF_INET
,
0
,
0
},
{
"ipv6"
,
'6'
,
POPT_ARG_VAL
,
&
default_af_hint
,
AF_INET6
,
0
,
0
},
#endif
{
"8-bit-output"
,
'8'
,
POPT_ARG_NONE
,
&
allow_8bit_chars
,
0
,
0
,
0
},
{
"qsort"
,
0
,
POPT_ARG_NONE
,
&
use_qsort
,
0
,
0
,
0
},
{
"address"
,
0
,
POPT_ARG_STRING
,
&
bind_address
,
0
,
0
,
0
},
...
...
@@ -632,10 +633,8 @@ static void daemon_usage(enum logcode F)
rprintf
(
F
,
" --log-file-format=FMT override the
\"
log format
\"
setting
\n
"
);
rprintf
(
F
,
" --sockopts=OPTIONS specify custom TCP options
\n
"
);
rprintf
(
F
,
" -v, --verbose increase verbosity
\n
"
);
#ifdef INET6
rprintf
(
F
,
" -4, --ipv4 prefer IPv4
\n
"
);
rprintf
(
F
,
" -6, --ipv6 prefer IPv6
\n
"
);
#endif
rprintf
(
F
,
" --help show this help screen
\n
"
);
rprintf
(
F
,
"
\n
"
);
...
...
@@ -649,10 +648,8 @@ static struct poptOption long_daemon_options[] = {
{
"bwlimit"
,
0
,
POPT_ARG_INT
,
&
daemon_bwlimit
,
0
,
0
,
0
},
{
"config"
,
0
,
POPT_ARG_STRING
,
&
config_file
,
0
,
0
,
0
},
{
"daemon"
,
0
,
POPT_ARG_NONE
,
&
daemon_opt
,
0
,
0
,
0
},
#ifdef INET6
{
"ipv4"
,
'4'
,
POPT_ARG_VAL
,
&
default_af_hint
,
AF_INET
,
0
,
0
},
{
"ipv6"
,
'6'
,
POPT_ARG_VAL
,
&
default_af_hint
,
AF_INET6
,
0
,
0
},
#endif
{
"detach"
,
0
,
POPT_ARG_VAL
,
&
no_detach
,
0
,
0
,
0
},
{
"no-detach"
,
0
,
POPT_ARG_VAL
,
&
no_detach
,
1
,
0
,
0
},
{
"log-file"
,
0
,
POPT_ARG_STRING
,
&
logfile_name
,
0
,
0
,
0
},
...
...
rsync.yo
View file @
24d677fc
...
...
@@ -1949,6 +1949,10 @@ when creating sockets. This only affects sockets that rsync has direct
control over, such as the outgoing socket when directly contacting an
rsync daemon. See also these options in the bf(--daemon) mode section.
If rsync was complied without support for IPv6, the bf(--ipv6) option
will have no effect. The bf(--version) output will tell you if this
is the case.
dit(bf(--checksum-seed=NUM)) Set the MD4 checksum seed to the integer
NUM. This 4 byte checksum seed is included in each block and file
MD4 checksum calculation. By default the checksum seed is generated
...
...
@@ -2031,6 +2035,10 @@ versions of Linux to work around an IPv6 bug in the kernel (if you see
an "address already in use" error when nothing else is using the port,
try specifying bf(--ipv6) or bf(--ipv4) when starting the daemon).
If rsync was complied without support for IPv6, the bf(--ipv6) option
will have no effect. The bf(--version) output will tell you if this
is the case.
dit(bf(-h, --help)) When specified after bf(--daemon), print a short help
page describing the options available for starting an rsync daemon.
enddit()
...
...
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