summaryrefslogtreecommitdiffstats
path: root/sys/kern/sys_pipe.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2012-04-22 05:43:14 +0000
committerguenther <guenther@openbsd.org>2012-04-22 05:43:14 +0000
commit06a89b59aa60d7f9c0e1ea26802b0384ef0dc14c (patch)
tree2a68460f65d82ea3089edac4aeb664d53b5154e8 /sys/kern/sys_pipe.c
parentFix printing commands with no arguments, from Benjamin Poirier. (diff)
downloadwireguard-openbsd-06a89b59aa60d7f9c0e1ea26802b0384ef0dc14c.tar.xz
wireguard-openbsd-06a89b59aa60d7f9c0e1ea26802b0384ef0dc14c.zip
Add struct proc * argument to FRELE() and FILE_SET_MATURE() in
anticipation of further changes to closef(). No binary change. ok krw@ miod@ deraadt@
Diffstat (limited to 'sys/kern/sys_pipe.c')
-rw-r--r--sys/kern/sys_pipe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c
index a3edd7cf7cf..5e0058013c0 100644
--- a/sys/kern/sys_pipe.c
+++ b/sys/kern/sys_pipe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sys_pipe.c,v 1.61 2011/07/08 19:00:09 tedu Exp $ */
+/* $OpenBSD: sys_pipe.c,v 1.62 2012/04/22 05:43:14 guenther Exp $ */
/*
* Copyright (c) 1996 John S. Dyson
@@ -141,8 +141,8 @@ sys_pipe(struct proc *p, void *v, register_t *retval)
rpipe->pipe_peer = wpipe;
wpipe->pipe_peer = rpipe;
- FILE_SET_MATURE(rf);
- FILE_SET_MATURE(wf);
+ FILE_SET_MATURE(rf, p);
+ FILE_SET_MATURE(wf, p);
error = copyout(fds, SCARG(uap, fdp), sizeof(fds));
if (error != 0) {