=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/sed/process.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- src/usr.bin/sed/process.c 2002/04/15 21:47:45 1.8 +++ src/usr.bin/sed/process.c 2002/06/11 06:16:36 1.9 @@ -1,4 +1,4 @@ -/* $OpenBSD: process.c,v 1.8 2002/04/15 21:47:45 millert Exp $ */ +/* $OpenBSD: process.c,v 1.9 2002/06/11 06:16:36 jsyn Exp $ */ /*- * Copyright (c) 1992 Diomidis Spinellis. @@ -39,7 +39,7 @@ #ifndef lint /* from: static char sccsid[] = "@(#)process.c 8.1 (Berkeley) 6/6/93"; */ -static char *rcsid = "$OpenBSD: process.c,v 1.8 2002/04/15 21:47:45 millert Exp $"; +static char *rcsid = "$OpenBSD: process.c,v 1.9 2002/06/11 06:16:36 jsyn Exp $"; #endif /* not lint */ #include @@ -227,10 +227,10 @@ if (cp->u.fd == -1 && (cp->u.fd = open(cp->t, O_WRONLY|O_APPEND|O_CREAT|O_TRUNC, DEFFILEMODE)) == -1) - err(FATAL, "%s: %s\n", + err(FATAL, "%s: %s", cp->t, strerror(errno)); if (write(cp->u.fd, ps, psl) != psl) - err(FATAL, "%s: %s\n", + err(FATAL, "%s: %s", cp->t, strerror(errno)); break; case 'x': @@ -414,9 +414,9 @@ if (cp->u.s->wfile && !pd) { 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) - 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) - err(FATAL, "%s: %s\n", cp->u.s->wfile, strerror(errno)); + err(FATAL, "%s: %s", cp->u.s->wfile, strerror(errno)); } return (1); }