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

Diff for /src/usr.bin/patch/inp.c between version 1.3 and 1.4

version 1.3, 1996/06/25 23:06:38 version 1.4, 1996/07/01 20:40:07
Line 241 
Line 241 
     using_plan_a = FALSE;      using_plan_a = FALSE;
     if ((ifp = fopen(filename, "r")) == Nullfp)      if ((ifp = fopen(filename, "r")) == Nullfp)
         pfatal2("can't open file %s", filename);          pfatal2("can't open file %s", filename);
       (void) unlink(TMPINNAME);
     if ((tifd = open(TMPINNAME, O_EXCL|O_CREAT|O_WRONLY, 0666)) < 0)      if ((tifd = open(TMPINNAME, O_EXCL|O_CREAT|O_WRONLY, 0666)) < 0)
         pfatal2("can't open file %s", TMPINNAME);          pfatal2("can't open file %s", TMPINNAME);
     while (fgets(buf, sizeof buf, ifp) != Nullch) {      while (fgets(buf, sizeof buf, ifp) != Nullch) {

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4