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

Diff for /src/usr.bin/patch/patch.c between version 1.75 and 1.76

version 1.75, 2023/10/25 20:05:43 version 1.76, 2024/03/22 19:22:23
Line 109 
Line 109 
 /* true if -R was specified on command line.  */  /* true if -R was specified on command line.  */
 static bool     reverse_flag_specified = false;  static bool     reverse_flag_specified = false;
   
   static bool     Vflag = false;
   
 /* buffer holding the name of the rejected patch file. */  /* buffer holding the name of the rejected patch file. */
 static char     rejname[PATH_MAX];  static char     rejname[PATH_MAX];
   
Line 255 
Line 257 
                 my_exit(2);                  my_exit(2);
         }          }
   
         if (backup_type == none) {          if (!Vflag) {
                 if ((v = getenv("PATCH_VERSION_CONTROL")) == NULL)                  if ((v = getenv("PATCH_VERSION_CONTROL")) == NULL)
                         v = getenv("VERSION_CONTROL");                          v = getenv("VERSION_CONTROL");
                 if (v != NULL || !posix)                  if (v != NULL || !posix)
Line 641 
Line 643 
                         break;                          break;
                 case 'V':                  case 'V':
                         backup_type = get_version(optarg);                          backup_type = get_version(optarg);
                           Vflag = true;
                         break;                          break;
 #ifdef DEBUGGING  #ifdef DEBUGGING
                 case 'x':                  case 'x':
Line 677 
Line 680 
         fprintf(stderr,          fprintf(stderr,
 "usage: patch [-bCcEeflNnRstuv] [-B backup-prefix] [-D symbol] [-d directory]\n"  "usage: patch [-bCcEeflNnRstuv] [-B backup-prefix] [-D symbol] [-d directory]\n"
 "             [-F max-fuzz] [-i patchfile] [-o out-file] [-p strip-count]\n"  "             [-F max-fuzz] [-i patchfile] [-o out-file] [-p strip-count]\n"
 "             [-r rej-name] [-V t | nil | never] [-x number] [-z backup-ext]\n"  "             [-r rej-name] [-V t | nil | never | none] [-x number]\n"
 "             [--posix] [origfile [patchfile]]\n"  "             [-z backup-ext] [--posix] [origfile [patchfile]]\n"
 "       patch <patchfile\n");  "       patch <patchfile\n");
         my_exit(2);          my_exit(2);
 }  }

Legend:
Removed from v.1.75  
changed lines
  Added in v.1.76