[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.8 and 1.9

version 1.8, 1997/04/03 07:07:36 version 1.9, 1998/11/25 00:30:26
Line 10 
Line 10 
 #include "INTERN.h"  #include "INTERN.h"
 #include "pch.h"  #include "pch.h"
   
   extern bool check_only;
 /* Patch (diff listing) abstract type. */  /* Patch (diff listing) abstract type. */
   
 static long p_filesize;                 /* size of the patch file */  static long p_filesize;                 /* size of the patch file */
Line 1270 
Line 1271 
     Fflush(pipefp);      Fflush(pipefp);
     Pclose(pipefp);      Pclose(pipefp);
     ignore_signals();      ignore_signals();
     if (move_file(TMPOUTNAME, outname) < 0) {      if (!check_only) {
         toutkeep = TRUE;          if (move_file(TMPOUTNAME, outname) < 0) {
         chmod(TMPOUTNAME, filemode);              toutkeep = TRUE;
               chmod(TMPOUTNAME, filemode);
           }
           else
               chmod(outname, filemode);
     }      }
     else  
         chmod(outname, filemode);  
     set_signals(1);      set_signals(1);
 }  }

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9