summaryrefslogtreecommitdiff
path: root/sys/compat/hpux/hpux_file.c
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2005-02-15 21:12:45 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2005-02-15 21:12:45 +0000
commit7f9e790e6258f10d1ef52de6fb97dc42440b879c (patch)
treeb7993b7f4524da19c713f262008b2e335e061707 /sys/compat/hpux/hpux_file.c
parent90ae1941281d165a6972261063064167b6266f85 (diff)
Fix HPUX fcntl() F_GETLK compatibility. Broken since r1.10 by FREF/FRELE
fixes. deraadt@ ok
Diffstat (limited to 'sys/compat/hpux/hpux_file.c')
-rw-r--r--sys/compat/hpux/hpux_file.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/compat/hpux/hpux_file.c b/sys/compat/hpux/hpux_file.c
index 6ee19e08b7f..b83eced4dcb 100644
--- a/sys/compat/hpux/hpux_file.c
+++ b/sys/compat/hpux/hpux_file.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hpux_file.c,v 1.15 2004/07/09 21:33:44 mickey Exp $ */
+/* $OpenBSD: hpux_file.c,v 1.16 2005/02/15 21:12:44 aaron Exp $ */
/* $NetBSD: hpux_file.c,v 1.5 1997/04/27 21:40:48 thorpej Exp $ */
/*
@@ -307,9 +307,10 @@ hpux_sys_fcntl(p, v, retval)
/* NOTREACHED */
case F_GETLK:
- if (fp->f_type != DTYPE_VNODE)
- error = EBADF;
- goto out;
+ if (fp->f_type != DTYPE_VNODE) {
+ error = EBADF;
+ goto out;
+ }
vp = (struct vnode *)fp->f_data;