summaryrefslogtreecommitdiffstats
path: root/sys/compat
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2002-04-11 21:00:05 +0000
committerjhb <jhb@FreeBSD.org>2002-04-11 21:00:05 +0000
commitb129a4a7ca85e377255fb9c2b89490d5059f4f5d (patch)
treeab97159ad279714d9502f5873f12be50634f3ca9 /sys/compat
parentae03d60df4a2be02a5da0d5809d06a5a1f93e1c3 (diff)
downloadFreeBSD-src-b129a4a7ca85e377255fb9c2b89490d5059f4f5d.zip
FreeBSD-src-b129a4a7ca85e377255fb9c2b89490d5059f4f5d.tar.gz
Use td_ucred in a few spots.
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/linux/linux_misc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c
index 46f0d52..e3d1cdb 100644
--- a/sys/compat/linux/linux_misc.c
+++ b/sys/compat/linux/linux_misc.c
@@ -1019,7 +1019,7 @@ linux_getgroups(struct thread *td, struct linux_getgroups_args *args)
gid_t *bsd_gidset;
int bsd_gidsetsz, ngrp, error;
- cred = td->td_proc->p_ucred;
+ cred = td->td_ucred;
bsd_gidset = cred->cr_groups;
bsd_gidsetsz = cred->cr_ngroups - 1;
@@ -1310,7 +1310,7 @@ int
linux_getgid(struct thread *td, struct linux_getgid_args *args)
{
- td->td_retval[0] = td->td_proc->p_ucred->cr_rgid;
+ td->td_retval[0] = td->td_ucred->cr_rgid;
return (0);
}
@@ -1318,7 +1318,7 @@ int
linux_getuid(struct thread *td, struct linux_getuid_args *args)
{
- td->td_retval[0] = td->td_proc->p_ucred->cr_ruid;
+ td->td_retval[0] = td->td_ucred->cr_ruid;
return (0);
}
OpenPOWER on IntegriCloud