diff options
Diffstat (limited to 'sys/compat/osf1/osf1_descrip.c')
-rw-r--r-- | sys/compat/osf1/osf1_descrip.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/compat/osf1/osf1_descrip.c b/sys/compat/osf1/osf1_descrip.c index 784f4ec7511..ea2b3ae3839 100644 --- a/sys/compat/osf1/osf1_descrip.c +++ b/sys/compat/osf1/osf1_descrip.c @@ -1,4 +1,4 @@ -/* $OpenBSD: osf1_descrip.c,v 1.6 2001/05/14 13:28:23 art Exp $ */ +/* $OpenBSD: osf1_descrip.c,v 1.7 2001/10/26 12:03:27 art Exp $ */ /* $NetBSD: osf1_descrip.c,v 1.5 1999/06/26 01:24:41 cgd Exp $ */ /* @@ -243,10 +243,7 @@ osf1_sys_fstat(p, v, retval) struct osf1_stat oub; int error; - /* XXX */ - if ((unsigned)SCARG(uap, fd) >= fdp->fd_nfiles || - (fp = fdp->fd_ofiles[SCARG(uap, fd)]) == NULL) /* || - (fp->f_iflags & FIF_WANTCLOSE) != 0) */ + if ((fp = fd_getfile(fdp, SCARG(uap, fd))) == NULL) return (EBADF); error = (*fp->f_ops->fo_stat)(fp, &ub, p); |