--- src/sys/emulation/ibcs2/i386/Attic/ibcs2_fcntl.c 2003/08/27 06:30:03 1.9 +++ src/sys/emulation/ibcs2/i386/Attic/ibcs2_fcntl.c 2005/06/22 01:33:25 1.10 @@ -194,7 +194,7 @@ ibcs2_open(struct ibcs2_open_args *uap) #endif /* SPX_HACK */ if (!ret && !noctty && p && SESS_LEADER(p) && !(p->p_flag & P_CONTROLT)) { struct filedesc *fdp = p->p_fd; - struct file *fp = fdp->fd_ofiles[uap->sysmsg_result]; + struct file *fp = fdp->fd_files[uap->sysmsg_result].fp; /* ignore any error, just give it a try */ if (fp->f_type == DTYPE_VNODE)