diff options
| author | pooka <pooka@NetBSD.org> | 2007-12-14 16:48:24 +0000 |
|---|---|---|
| committer | pooka <pooka@NetBSD.org> | 2007-12-14 16:48:24 +0000 |
| commit | 2780a147ca82060d3087d872d09fe11cfed6bf32 (patch) | |
| tree | 9ef4e1f5fee77cd4c4a18adaa1d719913340b6a0 /sys/kern/exec_script.c | |
| parent | 03dcf031ab52cfb6988b9329c8bd95ee4d66fa1d (diff) | |
nuke the leprechaun from VOP_ACCESS
Paul Lavoie, kern/37542
Diffstat (limited to 'sys/kern/exec_script.c')
| -rw-r--r-- | sys/kern/exec_script.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/exec_script.c b/sys/kern/exec_script.c index bc7ed1266b0..07023061154 100644 --- a/sys/kern/exec_script.c +++ b/sys/kern/exec_script.c @@ -1,4 +1,4 @@ -/* $NetBSD: exec_script.c,v 1.58 2007/11/26 19:02:00 pooka Exp $ */ +/* $NetBSD: exec_script.c,v 1.59 2007/12/14 16:48:24 pooka 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.58 2007/11/26 19:02:00 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: exec_script.c,v 1.59 2007/12/14 16:48:24 pooka Exp $"); #if defined(SETUIDSCRIPTS) && !defined(FDSCRIPTS) #define FDSCRIPTS /* Need this for safe set-id scripts. */ @@ -179,7 +179,7 @@ check_shell: * method of implementing "safe" set-id and x-only scripts. */ vn_lock(epp->ep_vp, LK_EXCLUSIVE | LK_RETRY); - error = VOP_ACCESS(epp->ep_vp, VREAD, l->l_cred, l); + error = VOP_ACCESS(epp->ep_vp, VREAD, l->l_cred); VOP_UNLOCK(epp->ep_vp, 0); if (error == EACCES #ifdef SETUIDSCRIPTS |
