diff --git a/sys/kern/exec_script.c b/sys/kern/exec_script.c index bc7ed1266b02..070230611544 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 -__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