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

Diff for /src/usr.bin/sed/process.c between version 1.8 and 1.9

version 1.8, 2002/04/15 21:47:45 version 1.9, 2002/06/11 06:16:36
Line 227 
Line 227 
                                 if (cp->u.fd == -1 && (cp->u.fd = open(cp->t,                                  if (cp->u.fd == -1 && (cp->u.fd = open(cp->t,
                                     O_WRONLY|O_APPEND|O_CREAT|O_TRUNC,                                      O_WRONLY|O_APPEND|O_CREAT|O_TRUNC,
                                     DEFFILEMODE)) == -1)                                      DEFFILEMODE)) == -1)
                                         err(FATAL, "%s: %s\n",                                          err(FATAL, "%s: %s",
                                             cp->t, strerror(errno));                                              cp->t, strerror(errno));
                                 if (write(cp->u.fd, ps, psl) != psl)                                  if (write(cp->u.fd, ps, psl) != psl)
                                         err(FATAL, "%s: %s\n",                                          err(FATAL, "%s: %s",
                                             cp->t, strerror(errno));                                              cp->t, strerror(errno));
                                 break;                                  break;
                         case 'x':                          case 'x':
Line 414 
Line 414 
         if (cp->u.s->wfile && !pd) {          if (cp->u.s->wfile && !pd) {
                 if (cp->u.s->wfd == -1 && (cp->u.s->wfd = open(cp->u.s->wfile,                  if (cp->u.s->wfd == -1 && (cp->u.s->wfd = open(cp->u.s->wfile,
                     O_WRONLY|O_APPEND|O_CREAT|O_TRUNC, DEFFILEMODE)) == -1)                      O_WRONLY|O_APPEND|O_CREAT|O_TRUNC, DEFFILEMODE)) == -1)
                         err(FATAL, "%s: %s\n", cp->u.s->wfile, strerror(errno));                          err(FATAL, "%s: %s", cp->u.s->wfile, strerror(errno));
                 if (write(cp->u.s->wfd, ps, psl) != psl)                  if (write(cp->u.s->wfd, ps, psl) != psl)
                         err(FATAL, "%s: %s\n", cp->u.s->wfile, strerror(errno));                          err(FATAL, "%s: %s", cp->u.s->wfile, strerror(errno));
         }          }
         return (1);          return (1);
 }  }

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9