diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2003-12-19 23:53:13 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2003-12-19 23:53:13 +0000 |
commit | a06160fcc491c92193f68f0a9859d611a7996aa1 (patch) | |
tree | c659aeba543aa339135ca618dbb9594d6f4f5282 /sys | |
parent | 21ac68f08d3f67b58d31d529f91d04036cf0acd3 (diff) |
Make sure hpux fcntl() operates on the proper file.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/compat/hpux/hpux_file.c | 4 |
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); |