summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2003-12-19 23:53:13 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2003-12-19 23:53:13 +0000
commita06160fcc491c92193f68f0a9859d611a7996aa1 (patch)
treec659aeba543aa339135ca618dbb9594d6f4f5282 /sys
parent21ac68f08d3f67b58d31d529f91d04036cf0acd3 (diff)
Make sure hpux fcntl() operates on the proper file.
Diffstat (limited to 'sys')
-rw-r--r--sys/compat/hpux/hpux_file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/hpux/hpux_file.c b/sys/compat/hpux/hpux_file.c
index b656c330652..e55cdc97b9d 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.13 2003/06/02 23:28:00 millert Exp $ */
+/* $OpenBSD: hpux_file.c,v 1.14 2003/12/19 23:53:12 miod Exp $ */
/* $NetBSD: hpux_file.c,v 1.5 1997/04/27 21:40:48 thorpej Exp $ */
/*
@@ -214,7 +214,7 @@ hpux_sys_fcntl(p, v, retval)
struct flock fl;
struct vnode *vp;
struct sys_fcntl_args fa;
- struct filedesc *fdp;
+ struct filedesc *fdp = p->p_fd;
if ((fp = fd_getfile(fdp, SCARG(uap, fd))) == NULL)
return (EBADF);