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

Diff for /src/usr.bin/patch/pch.c between version 1.21 and 1.22

version 1.21, 2003/07/22 17:18:49 version 1.22, 2003/07/22 17:20:53
Line 1312 
Line 1312 
 {  {
         char    *t;          char    *t;
         long    beginning_of_this_line;          long    beginning_of_this_line;
         bool    this_line_is_command = FALSE;  
         FILE    *pipefp;          FILE    *pipefp;
   
         if (!skip_rest_of_patch) {          if (!skip_rest_of_patch) {
Line 1333 
Line 1332 
                 p_input_line++;                  p_input_line++;
                 for (t = buf; isdigit(*t) || *t == ','; t++)                  for (t = buf; isdigit(*t) || *t == ','; t++)
                         ;                          ;
                 this_line_is_command = (isdigit(*buf) &&                  /* POSIX defines allowed commands as {a,c,d,i,s} */
                     (*t == 'd' || *t == 'c' || *t == 'a'));                  if (isdigit(*buf) && (*t == 'a' || *t == 'c' || *t == 'd' ||
                 if (this_line_is_command) {                      *t == 'i' || *t == 's')) {
                         if (!skip_rest_of_patch)                          if (!skip_rest_of_patch)
                                 fputs(buf, pipefp);                                  fputs(buf, pipefp);
                         if (*t != 'd') {                          if (*t != 'd') {

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22