diff options
Diffstat (limited to 'sys/i386/ibcs2')
-rw-r--r-- | sys/i386/ibcs2/ibcs2_util.c | 4 | ||||
-rw-r--r-- | sys/i386/ibcs2/ibcs2_xenix.c | 2 | ||||
-rw-r--r-- | sys/i386/ibcs2/imgact_coff.c | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/sys/i386/ibcs2/ibcs2_util.c b/sys/i386/ibcs2/ibcs2_util.c index 8b0720a..2172433 100644 --- a/sys/i386/ibcs2/ibcs2_util.c +++ b/sys/i386/ibcs2/ibcs2_util.c @@ -140,11 +140,11 @@ ibcs2_emul_find(td, sgp, prefix, path, pbuf, cflag) return error; } - if ((error = VOP_GETATTR(nd.ni_vp, &vat, td->td_proc->p_ucred, td)) != 0) { + if ((error = VOP_GETATTR(nd.ni_vp, &vat, td->td_ucred, td)) != 0) { goto done; } - if ((error = VOP_GETATTR(ndroot.ni_vp, &vatroot, td->td_proc->p_ucred, td)) + if ((error = VOP_GETATTR(ndroot.ni_vp, &vatroot, td->td_ucred, td)) != 0) { goto done; } diff --git a/sys/i386/ibcs2/ibcs2_xenix.c b/sys/i386/ibcs2/ibcs2_xenix.c index 0e40c45..1e06a4b 100644 --- a/sys/i386/ibcs2/ibcs2_xenix.c +++ b/sys/i386/ibcs2/ibcs2_xenix.c @@ -194,7 +194,7 @@ xenix_scoinfo(struct thread *td, struct xenix_scoinfo_args *uap) int xenix_eaccess(struct thread *td, struct xenix_eaccess_args *uap) { - struct ucred *cred = td->td_proc->p_ucred; + struct ucred *cred = td->td_ucred; struct vnode *vp; struct nameidata nd; int error, flags; diff --git a/sys/i386/ibcs2/imgact_coff.c b/sys/i386/ibcs2/imgact_coff.c index 6d5621f..fd89db4 100644 --- a/sys/i386/ibcs2/imgact_coff.c +++ b/sys/i386/ibcs2/imgact_coff.c @@ -183,7 +183,7 @@ coff_load_file(struct thread *td, char *name) goto fail; } - if ((error = VOP_GETATTR(vp, &attr, p->p_ucred, td)) != 0) + if ((error = VOP_GETATTR(vp, &attr, td->td_ucred, td)) != 0) goto fail; if ((vp->v_mount->mnt_flag & MNT_NOEXEC) @@ -196,10 +196,10 @@ coff_load_file(struct thread *td, char *name) goto fail; } - if ((error = VOP_ACCESS(vp, VEXEC, p->p_ucred, td)) != 0) + if ((error = VOP_ACCESS(vp, VEXEC, td->td_ucred, td)) != 0) goto fail; - if ((error = VOP_OPEN(vp, FREAD, p->p_ucred, td)) != 0) + if ((error = VOP_OPEN(vp, FREAD, td->td_ucred, td)) != 0) goto fail; /* |