[BACK]Return to main.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / rsync

Diff for /src/usr.bin/rsync/main.c between version 1.58 and 1.59

version 1.58, 2021/08/30 20:25:01 version 1.59, 2021/09/01 09:48:08
Line 292 
Line 292 
     { "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' },
Line 344 
Line 342 
         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;
Line 423 
Line 418 
                                     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",
Line 453 
Line 446 
   
         /* 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;
   
         /*          /*

Legend:
Removed from v.1.58  
changed lines
  Added in v.1.59