[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.5 and 1.6

version 1.5, 1996/09/15 19:19:54 version 1.6, 1996/09/23 10:54:21
Line 784 
Line 784 
 init_output(name)  init_output(name)
 char *name;  char *name;
 {  {
     int ofd;      ofp = fopen(name, "w");
       if (ofp == Nullfp)
     if ((ofd = open(name, O_CREAT|O_EXCL|O_WRONLY, 0600)) < 0 ||  
         (ofp = fdopen(ofd, "w")) == Nullfp)  
         pfatal2("can't create %s", name);          pfatal2("can't create %s", name);
 }  }
   
Line 797 
Line 795 
 init_reject(name)  init_reject(name)
 char *name;  char *name;
 {  {
     int rejfd;      rejfp = fopen(name, "w");
       if (rejfp == Nullfp)
     if ((rejfd = open(name, O_CREAT|O_EXCL|O_WRONLY, 0600)) < 0 ||  
         (rejfp = fdopen(rejfd, "w")) == Nullfp)  
         pfatal2("can't create %s", name);          pfatal2("can't create %s", name);
 }  }
   

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6