[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.39 and 1.40

version 1.39, 2014/11/15 16:35:47 version 1.40, 2014/11/22 15:49:28
Line 163 
Line 163 
         }          }
         if (statfailed && check_only)          if (statfailed && check_only)
                 fatal("%s not found, -C mode, can't probe further\n", filename);                  fatal("%s not found, -C mode, can't probe further\n", filename);
         /* For nonexistent or read-only files, look for RCS or SCCS versions.  */          /* For nonexistent or read-only files, look for RCS versions.  */
         if (statfailed ||          if (statfailed ||
             /* No one can write to it.  */              /* No one can write to it.  */
             (filestat.st_mode & 0222) == 0 ||              (filestat.st_mode & 0222) == 0 ||
Line 187 
Line 187 
                         snprintf(buf, sizeof buf, CHECKOUT, filename);                          snprintf(buf, sizeof buf, CHECKOUT, filename);
                         snprintf(lbuf, sizeof lbuf, RCSDIFF, filename);                          snprintf(lbuf, sizeof lbuf, RCSDIFF, filename);
                         cs = "RCS";                          cs = "RCS";
                 } else if (try("%s/SCCS/%s%s", filedir, SCCSPREFIX, filebase) ||  
                     try("%s/%s%s", filedir, SCCSPREFIX, filebase)) {  
                         snprintf(buf, sizeof buf, GET, s);  
                         snprintf(lbuf, sizeof lbuf, SCCSDIFF, s, filename);  
                         cs = "SCCS";  
                 } else if (statfailed)                  } else if (statfailed)
                         fatal("can't find %s\n", filename);                          fatal("can't find %s\n", filename);
                 /*                  /*

Legend:
Removed from v.1.39  
changed lines
  Added in v.1.40