summaryrefslogtreecommitdiffstats
path: root/sys/kern/exec_script.c
diff options
context:
space:
mode:
authornatano <natano@openbsd.org>2016-03-19 12:04:15 +0000
committernatano <natano@openbsd.org>2016-03-19 12:04:15 +0000
commit937fcae7c622e0ae47c1757467b994983f2677fb (patch)
tree67fb7013ab6a41111d228055d032a29f68d1516d /sys/kern/exec_script.c
parentReduces the noise around the global ``ticks'' variable by renaming all (diff)
downloadwireguard-openbsd-937fcae7c622e0ae47c1757467b994983f2677fb.tar.xz
wireguard-openbsd-937fcae7c622e0ae47c1757467b994983f2677fb.zip
Remove the unused flags argument from VOP_UNLOCK().
torture tested on amd64, i386 and macppc ok beck mpi stefan "the change looks right" deraadt
Diffstat (limited to 'sys/kern/exec_script.c')
-rw-r--r--sys/kern/exec_script.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/exec_script.c b/sys/kern/exec_script.c
index 214c5566430..c44cbf53892 100644
--- a/sys/kern/exec_script.c
+++ b/sys/kern/exec_script.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: exec_script.c,v 1.37 2015/12/31 18:55:33 mmcc Exp $ */
+/* $OpenBSD: exec_script.c,v 1.38 2016/03/19 12:04:15 natano Exp $ */
/* $NetBSD: exec_script.c,v 1.13 1996/02/04 02:15:06 christos Exp $ */
/*
@@ -165,7 +165,7 @@ check_shell:
*/
vn_lock(scriptvp, LK_EXCLUSIVE|LK_RETRY, p);
error = VOP_ACCESS(scriptvp, VREAD, p->p_ucred, p);
- VOP_UNLOCK(scriptvp, 0, p);
+ VOP_UNLOCK(scriptvp, p);
if (error == EACCES || script_sbits) {
struct file *fp;