=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/sendbug/sendbug.c,v retrieving revision 1.27 retrieving revision 1.28 diff -u -r1.27 -r1.28 --- src/usr.bin/sendbug/sendbug.c 2007/03/26 06:40:01 1.27 +++ src/usr.bin/sendbug/sendbug.c 2007/03/26 06:47:00 1.28 @@ -1,4 +1,4 @@ -/* $OpenBSD: sendbug.c,v 1.27 2007/03/26 06:40:01 ray Exp $ */ +/* $OpenBSD: sendbug.c,v 1.28 2007/03/26 06:47:00 ray Exp $ */ /* * Written by Ray Lai . @@ -133,7 +133,8 @@ mtime = sb.st_mtime; edit: - editit(tmppath); + if (editit(tmppath) == -1 && errno != ECHILD) + err(1, "error running editor"); if (stat(tmppath, &sb) == -1) err(1, "stat");