diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-06-08 15:47:40 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-06-08 15:47:40 +0000 |
commit | ef05d7e461deda56c895a6cebb5383274729457a (patch) | |
tree | ffc06a9da658f89990314acaeaa20f4733ba428c /sys/compat | |
parent | 3fd737366af771a11c9763db0af24e79a905f54b (diff) |
use sys_opipe(), but note the descriptor leakage
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/linux/linux_misc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index 3f0136ea255..c6efe014cd8 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_misc.c,v 1.21 1999/05/31 17:34:46 millert Exp $ */ +/* $OpenBSD: linux_misc.c,v 1.22 1999/06/08 15:47:39 deraadt Exp $ */ /* $NetBSD: linux_misc.c,v 1.27 1996/05/20 01:59:21 fvdl Exp $ */ /* @@ -643,7 +643,7 @@ linux_sys_pipe(p, v, retval) int reg_edx = retval[1]; #endif /* __i386__ */ - if ((error = sys_pipe(p, 0, retval))) { + if ((error = sys_opipe(p, 0, retval))) { #ifdef __i386__ retval[1] = reg_edx; #endif /* __i386__ */ @@ -656,6 +656,7 @@ linux_sys_pipe(p, v, retval) #ifdef __i386__ retval[1] = reg_edx; #endif /* __i386__ */ + /* XXX leaks descriptors */ return error; } |