[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.66 and 1.67

version 1.66, 2023/02/14 17:15:15 version 1.67, 2023/04/27 16:28:18
Line 281 
Line 281 
 #define OP_PORT         1001  #define OP_PORT         1001
 #define OP_RSYNCPATH    1002  #define OP_RSYNCPATH    1002
 #define OP_TIMEOUT      1003  #define OP_TIMEOUT      1003
 #define OP_VERSION      1004  
 #define OP_EXCLUDE      1005  #define OP_EXCLUDE      1005
 #define OP_INCLUDE      1006  #define OP_INCLUDE      1006
 #define OP_EXCLUDE_FROM 1007  #define OP_EXCLUDE_FROM 1007
Line 339 
Line 338 
     { "no-times",       no_argument,    &opts.preserve_times,   0 },      { "no-times",       no_argument,    &opts.preserve_times,   0 },
     { "verbose",        no_argument,    &verbose,               1 },      { "verbose",        no_argument,    &verbose,               1 },
     { "no-verbose",     no_argument,    &verbose,               0 },      { "no-verbose",     no_argument,    &verbose,               0 },
     { "version",        no_argument,    NULL,                   OP_VERSION },      { "version",        no_argument,    NULL,                   'V' },
     { NULL,             0,              NULL,                   0 }      { NULL,             0,              NULL,                   0 }
 };  };
   
Line 362 
Line 361 
   
         opts.max_size = opts.min_size = -1;          opts.max_size = opts.min_size = -1;
   
         while ((c = getopt_long(argc, argv, "Dae:ghlnoprtvxz", lopts, &lidx))          while ((c = getopt_long(argc, argv, "aDe:ghlnoprtVvxz", lopts, &lidx))
             != -1) {              != -1) {
                 switch (c) {                  switch (c) {
                 case 'D':                  case 'D':
Line 406 
Line 405 
                 case 'v':                  case 'v':
                         verbose++;                          verbose++;
                         break;                          break;
                   case 'V':
                           fprintf(stderr, "openrsync: protocol version %u\n",
                               RSYNC_PROTOCOL);
                           exit(0);
                 case 'x':                  case 'x':
                         opts.one_file_system++;                          opts.one_file_system++;
                         break;                          break;
Line 495 
Line 498 
                         if (scan_scaled(optarg, &opts.min_size) == -1)                          if (scan_scaled(optarg, &opts.min_size) == -1)
                                 err(1, "bad min-size");                                  err(1, "bad min-size");
                         break;                          break;
                 case OP_VERSION:  
                         fprintf(stderr, "openrsync: protocol version %u\n",  
                             RSYNC_PROTOCOL);  
                         exit(0);  
                 case 'h':                  case 'h':
                 default:                  default:
                         goto usage;                          goto usage;
Line 633 
Line 632 
         exit(rc);          exit(rc);
 usage:  usage:
         fprintf(stderr, "usage: %s"          fprintf(stderr, "usage: %s"
             " [-aDglnoprtvx] [-e program] [--address=sourceaddr]\n"              " [-aDglnoprtVvx] [-e program] [--address=sourceaddr]\n"
             "\t[--contimeout=seconds] [--compare-dest=dir] [--del] [--exclude]\n"              "\t[--contimeout=seconds] [--compare-dest=dir] [--del] [--exclude]\n"
             "\t[--exclude-from=file] [--include] [--include-from=file]\n"              "\t[--exclude-from=file] [--include] [--include-from=file]\n"
             "\t[--no-motd] [--numeric-ids] [--port=portnumber]\n"              "\t[--no-motd] [--numeric-ids] [--port=portnumber]\n"
             "\t[--rsync-path=program] [--timeout=seconds] [--version]\n"              "\t[--rsync-path=program] [--timeout=seconds]\n"
             "\tsource ... directory\n",              "\tsource ... directory\n",
             getprogname());              getprogname());
         exit(ERR_SYNTAX);          exit(ERR_SYNTAX);

Legend:
Removed from v.1.66  
changed lines
  Added in v.1.67