diff options
author | Ray Lai <ray@cvs.openbsd.org> | 2007-03-26 06:47:01 +0000 |
---|---|---|
committer | Ray Lai <ray@cvs.openbsd.org> | 2007-03-26 06:47:01 +0000 |
commit | add64af128b11c8622fab4296bef1fb702857ff8 (patch) | |
tree | 731658857c5f521f84de7d5a63acc4f95bfe4646 /usr.bin/sendbug | |
parent | 46ddc8936e98a5cc397d23dd462b2b3bc15d7f5e (diff) |
Certain errors in editit() should be fatal.
Diffstat (limited to 'usr.bin/sendbug')
-rw-r--r-- | usr.bin/sendbug/sendbug.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/sendbug/sendbug.c b/usr.bin/sendbug/sendbug.c index 424f12b3fff..b98dc94d62f 100644 --- a/usr.bin/sendbug/sendbug.c +++ b/usr.bin/sendbug/sendbug.c @@ -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 <ray@cyth.net>. @@ -133,7 +133,8 @@ main(int argc, char *argv[]) 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"); |