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

Diff for /src/usr.bin/make/job.c between version 1.37 and 1.38

version 1.37, 2000/09/14 13:52:42 version 1.38, 2000/11/24 14:36:34
Line 1009 
Line 1009 
     Boolean       silent;       /* TRUE if should not print messages */      Boolean       silent;       /* TRUE if should not print messages */
 {  {
     int           streamID;     /* ID of stream opened to do the touch */      int           streamID;     /* ID of stream opened to do the touch */
     struct utimbuf times;       /* Times for utime() call */  
   
     if (gn->type & (OP_JOIN|OP_USE|OP_EXEC|OP_OPTIONAL)) {      if (gn->type & (OP_JOIN|OP_USE|OP_EXEC|OP_OPTIONAL)) {
         /*          /*
Line 1035 
Line 1034 
     } else {      } else {
         char    *file = gn->path ? gn->path : gn->name;          char    *file = gn->path ? gn->path : gn->name;
   
         times.actime = times.modtime = now;          if (set_times(file) == -1) {
         if (utime(file, &times) < 0){  
             streamID = open(file, O_RDWR | O_CREAT, 0666);              streamID = open(file, O_RDWR | O_CREAT, 0666);
   
             if (streamID >= 0) {              if (streamID >= 0) {

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.38