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

Diff for /src/usr.bin/mg/fileio.c between version 1.28 and 1.29

version 1.28, 2002/04/15 23:24:42 version 1.29, 2002/04/22 04:27:37
Line 174 
Line 174 
         }          }
         if (stat(fn, &sb) == -1) {          if (stat(fn, &sb) == -1) {
                 ewprintf("Can't stat %s : %s", fn, strerror(errno));                  ewprintf("Can't stat %s : %s", fn, strerror(errno));
                   free(nname);
                 return (FALSE);                  return (FALSE);
         }          }
   
Line 191 
Line 192 
         }          }
         while ((nread = read(from, buf, sizeof(buf))) > 0) {          while ((nread = read(from, buf, sizeof(buf))) > 0) {
                 if (write(to, buf, nread) != nread) {                  if (write(to, buf, nread) != nread) {
                     nread = -1;                          nread = -1;
                     break;                          break;
                 }                  }
         }          }
         serrno = errno;          serrno = errno;

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29