summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2003-04-18 18:06:32 +0000
committerjhb <jhb@FreeBSD.org>2003-04-18 18:06:32 +0000
commit9d51c8cfb55d533231e653ed93be4f1f2b426c40 (patch)
treedb8755c1f524f70ac67035b76482170a7fcf0446 /sys
parent65d4bf1aff8713406d8f95131d3ed441080a529d (diff)
downloadFreeBSD-src-9d51c8cfb55d533231e653ed93be4f1f2b426c40.zip
FreeBSD-src-9d51c8cfb55d533231e653ed93be4f1f2b426c40.tar.gz
Fix a bug in alpha_get_uac() that I introduced in revision 1.18. It is
supposed to return the uac of the parent process of the current process, not the current process. Pointy hat to: jhb
Diffstat (limited to 'sys')
-rw-r--r--sys/alpha/alpha/sys_machdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/alpha/alpha/sys_machdep.c b/sys/alpha/alpha/sys_machdep.c
index 94334bc..224e7e4 100644
--- a/sys/alpha/alpha/sys_machdep.c
+++ b/sys/alpha/alpha/sys_machdep.c
@@ -209,7 +209,7 @@ alpha_get_uac(struct thread *td, char *args)
pp = p->p_pptr;
if (pp != NULL) {
PROC_LOCK(pp);
- uac = p->p_md.md_uac;
+ uac = pp->p_md.md_uac;
PROC_UNLOCK(pp);
PROC_UNLOCK(p);
error = copyout(&uac, args, sizeof(uac));
OpenPOWER on IntegriCloud