version 1.58, 2021/08/30 20:25:01 |
version 1.59, 2021/09/01 09:48:08 |
|
|
{ "dry-run", no_argument, &opts.dry_run, 1 }, |
{ "dry-run", no_argument, &opts.dry_run, 1 }, |
{ "exclude", required_argument, NULL, OP_EXCLUDE }, |
{ "exclude", required_argument, NULL, OP_EXCLUDE }, |
{ "exclude-from", required_argument, NULL, OP_EXCLUDE_FROM }, |
{ "exclude-from", required_argument, NULL, OP_EXCLUDE_FROM }, |
{ "from0", no_argument, NULL, '0' }, |
|
{ "no-from0", no_argument, &opts.from0, 0 }, |
|
{ "group", no_argument, &opts.preserve_gids, 1 }, |
{ "group", no_argument, &opts.preserve_gids, 1 }, |
{ "no-group", no_argument, &opts.preserve_gids, 0 }, |
{ "no-group", no_argument, &opts.preserve_gids, 0 }, |
{ "help", no_argument, NULL, 'h' }, |
{ "help", no_argument, NULL, 'h' }, |
|
|
while ((c = getopt_long(argc, argv, "Dae:ghlnoprtvxz", lopts, NULL)) |
while ((c = getopt_long(argc, argv, "Dae:ghlnoprtvxz", lopts, NULL)) |
!= -1) { |
!= -1) { |
switch (c) { |
switch (c) { |
case '0': |
|
opts.from0 = 1; |
|
break; |
|
case 'D': |
case 'D': |
opts.devices = 1; |
opts.devices = 1; |
opts.specials = 1; |
opts.specials = 1; |
|
|
optarg); |
optarg); |
break; |
break; |
case OP_EXCLUDE_FROM: |
case OP_EXCLUDE_FROM: |
parse_file(optarg, RULE_EXCLUDE, |
parse_file(optarg, RULE_EXCLUDE); |
opts.from0 ? '\0' : '\n' ); |
|
break; |
break; |
case OP_INCLUDE_FROM: |
case OP_INCLUDE_FROM: |
parse_file(optarg, RULE_INCLUDE, |
parse_file(optarg, RULE_INCLUDE); |
opts.from0 ? '\0' : '\n' ); |
|
break; |
break; |
case OP_VERSION: |
case OP_VERSION: |
fprintf(stderr, "openrsync: protocol version %u\n", |
fprintf(stderr, "openrsync: protocol version %u\n", |
|
|
|
|
/* by default and for --timeout=0 disable poll_timeout */ |
/* by default and for --timeout=0 disable poll_timeout */ |
if (poll_timeout == 0) |
if (poll_timeout == 0) |
poll_timeout = -1; |
poll_timeout = -1; else |
else |
|
poll_timeout *= 1000; |
poll_timeout *= 1000; |
|
|
/* |
/* |