[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.2 and 1.3

version 1.2, 1996/06/10 11:21:28 version 1.3, 1996/06/25 23:06:38
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);
     if ((tifd = creat(TMPINNAME, 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) {
         if (revision != Nullch && !found_revision && rev_in_string(buf))          if (revision != Nullch && !found_revision && rev_in_string(buf))

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