diff options
| author | fvdl <fvdl@NetBSD.org> | 1998-03-01 02:20:01 +0000 |
|---|---|---|
| committer | fvdl <fvdl@NetBSD.org> | 1998-03-01 02:20:01 +0000 |
| commit | e5bc90f40cf5f81854c72bcc45b85a560fdb066f (patch) | |
| tree | c56929ae8db5281f5a9bdae505c93059defcd4a6 /sys/kern/exec_script.c | |
| parent | 1ad6fdb33fd15b73040fdd0f5feabbd73782a4d3 (diff) | |
Merge with Lite2 + local changes
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 f733e4cc8c3..eb146365867 100644 --- a/sys/kern/exec_script.c +++ b/sys/kern/exec_script.c @@ -1,4 +1,4 @@ -/* $NetBSD: exec_script.c,v 1.18 1997/07/08 02:32:02 christos Exp $ */ +/* $NetBSD: exec_script.c,v 1.19 1998/03/01 02:22:27 fvdl Exp $ */ /* * Copyright (c) 1993, 1994, 1996 Christopher G. Demetriou @@ -163,9 +163,9 @@ check_shell: * close all open fd's when the start. That kills this * method of implementing "safe" set-id and x-only scripts. */ - VOP_LOCK(epp->ep_vp); + vn_lock(epp->ep_vp, LK_EXCLUSIVE | LK_RETRY); error = VOP_ACCESS(epp->ep_vp, VREAD, p->p_ucred, p); - VOP_UNLOCK(epp->ep_vp); + VOP_UNLOCK(epp->ep_vp, 0); if (error == EACCES #ifdef SETUIDSCRIPTS || script_sbits |
