summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorRay Lai <ray@cvs.openbsd.org>2007-03-26 05:39:52 +0000
committerRay Lai <ray@cvs.openbsd.org>2007-03-26 05:39:52 +0000
commitd8be412b301ec4090b9988e522fa32a9d53528e6 (patch)
tree3b5406b0e06227493bbf54cadb8865091bf16dda /usr.bin
parent1b1710bd5e0457f3118fb8da7172ee3717f38508 (diff)
Restore errno before calling perror().
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/sendbug/sendbug.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/sendbug/sendbug.c b/usr.bin/sendbug/sendbug.c
index 7b0bf6516ae..6269c00113e 100644
--- a/usr.bin/sendbug/sendbug.c
+++ b/usr.bin/sendbug/sendbug.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sendbug.c,v 1.23 2007/03/26 05:34:30 ray Exp $ */
+/* $OpenBSD: sendbug.c,v 1.24 2007/03/26 05:39:51 ray Exp $ */
/*
* Written by Ray Lai <ray@cyth.net>.
@@ -189,6 +189,7 @@ editit(char *tmpfile)
sleep(1);
goto top;
}
+ errno = saved_errno;
perror("fork");
free(p);
return (-1);