diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2003-08-04 16:30:36 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2003-08-04 16:30:36 +0000 |
commit | b8f603108a8c1e84d026230aff4d4d76d515fad4 (patch) | |
tree | a830575f6f8ec7c486a8ddf4eb7b5cdc60ac71ef | |
parent | a61b50321903053885255ff272464c59e2787cd3 (diff) |
Add missing close() on EFTYPE error in exec(); from Patrick Latifi
-rw-r--r-- | sys/lib/libsa/exec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/lib/libsa/exec.c b/sys/lib/libsa/exec.c index df3e08d13a1..29ea322ff31 100644 --- a/sys/lib/libsa/exec.c +++ b/sys/lib/libsa/exec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exec.c,v 1.24 2003/06/02 23:28:09 millert Exp $ */ +/* $OpenBSD: exec.c,v 1.25 2003/08/04 16:30:35 millert Exp $ */ /* $NetBSD: exec.c,v 1.15 1996/10/13 02:29:01 christos Exp $ */ /*- @@ -71,6 +71,7 @@ exec(path, loadaddr, howto) sz = read(io, (char *)&x, sizeof(x)); if (sz != sizeof(x) || N_BADMAG(x)) { + close(io); errno = EFTYPE; return; } |