summaryrefslogtreecommitdiff
path: root/sys/kern/exec_script.c
diff options
context:
space:
mode:
authormatt <matt@NetBSD.org>2014-09-05 09:20:59 +0000
committermatt <matt@NetBSD.org>2014-09-05 09:20:59 +0000
commit11a55f5b084ab333fdc7e1df943575912d882fbe (patch)
treeb315373663a68c7dfdc42fd481cc72536535483d /sys/kern/exec_script.c
parent4ae70a99d4d64811c2db51e417368a5976fc70ea (diff)
Try not to use f_data, use f_{vnode,socket,pipe,mqueue,kqueue,ksem} to get
a correctly typed pointer.
Diffstat (limited to 'sys/kern/exec_script.c')
-rw-r--r--sys/kern/exec_script.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/exec_script.c b/sys/kern/exec_script.c
index 95212a2f1c4..69f9945d193 100644
--- a/sys/kern/exec_script.c
+++ b/sys/kern/exec_script.c
@@ -1,4 +1,4 @@
-/* $NetBSD: exec_script.c,v 1.73 2014/06/30 17:31:15 maxv Exp $ */
+/* $NetBSD: exec_script.c,v 1.74 2014/09/05 09:20:59 matt Exp $ */
/*
* Copyright (c) 1993, 1994, 1996 Christopher G. Demetriou
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: exec_script.c,v 1.73 2014/06/30 17:31:15 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: exec_script.c,v 1.74 2014/09/05 09:20:59 matt Exp $");
#if defined(SETUIDSCRIPTS) && !defined(FDSCRIPTS)
#define FDSCRIPTS /* Need this for safe set-id scripts. */
@@ -228,7 +228,7 @@ check_shell:
epp->ep_flags |= EXEC_HASFD;
fp->f_type = DTYPE_VNODE;
fp->f_ops = &vnops;
- fp->f_data = (void *) epp->ep_vp;
+ fp->f_vnode = epp->ep_vp;
fp->f_flag = FREAD;
fd_affix(curproc, fp, epp->ep_fd);
}