1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-30 16:51:41 +00:00

Use td_ucred and thus remove now unneeded proc lock acquire and release.

This commit is contained in:
John Baldwin 2002-02-27 19:09:30 +00:00
parent c9dfae71a8
commit 7807397242
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=91415

View File

@ -50,9 +50,7 @@ ibcs2_secure(struct thread *td, struct ibcs2_secure_args *uap)
switch (uap->cmd) {
case IBCS2_SECURE_GETLUID: /* get login uid */
PROC_LOCK(td->td_proc);
td->td_retval[0] = td->td_proc->p_ucred->cr_uid;
PROC_UNLOCK(td->td_proc);
td->td_retval[0] = td->td_ucred->cr_uid;
return 0;
case IBCS2_SECURE_SETLUID: /* set login uid */