summaryrefslogtreecommitdiffstats
path: root/sys/compat/svr4/svr4_fcntl.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/compat/svr4/svr4_fcntl.c')
-rw-r--r--sys/compat/svr4/svr4_fcntl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/compat/svr4/svr4_fcntl.c b/sys/compat/svr4/svr4_fcntl.c
index 12c956c..394b1d5 100644
--- a/sys/compat/svr4/svr4_fcntl.c
+++ b/sys/compat/svr4/svr4_fcntl.c
@@ -260,10 +260,10 @@ fd_revoke(td, fd)
goto out;
}
- if ((error = VOP_GETATTR(vp, &vattr, td->td_proc->p_ucred, td)) != 0)
+ if ((error = VOP_GETATTR(vp, &vattr, td->td_ucred, td)) != 0)
goto out;
- if (td->td_proc->p_ucred->cr_uid != vattr.va_uid &&
+ if (td->td_ucred->cr_uid != vattr.va_uid &&
(error = suser_td(td)) != 0)
goto out;
@@ -306,7 +306,7 @@ fd_truncate(td, fd, flp)
return ESPIPE;
}
- if ((error = VOP_GETATTR(vp, &vattr, td->td_proc->p_ucred, td)) != 0) {
+ if ((error = VOP_GETATTR(vp, &vattr, td->td_ucred, td)) != 0) {
fdrop(fp, td);
return error;
}
OpenPOWER on IntegriCloud