From 576f2b4ce76c591921e3b6451736a3a2188a5329 Mon Sep 17 00:00:00 2001 From: yamt Date: Mon, 15 May 2006 13:06:40 +0000 Subject: [PATCH] fix another kauth mistake. --- sys/compat/hpux/hpux_compat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/compat/hpux/hpux_compat.c b/sys/compat/hpux/hpux_compat.c index 225ba3ac47e2..a153f30f9c0e 100644 --- a/sys/compat/hpux/hpux_compat.c +++ b/sys/compat/hpux/hpux_compat.c @@ -1,4 +1,4 @@ -/* $NetBSD: hpux_compat.c,v 1.76 2006/05/15 13:01:39 yamt Exp $ */ +/* $NetBSD: hpux_compat.c,v 1.77 2006/05/15 13:06:40 yamt Exp $ */ /* * Copyright (c) 1990, 1993 @@ -82,7 +82,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: hpux_compat.c,v 1.76 2006/05/15 13:01:39 yamt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: hpux_compat.c,v 1.77 2006/05/15 13:06:40 yamt Exp $"); #if defined(_KERNEL_OPT) #include "opt_sysv.h" @@ -1085,7 +1085,7 @@ hpux_sys_getaccess(l, v, retval) break; case -2: /* NGROUPS_RGID */ kauth_cred_setegid(cred, kauth_cred_getgid(p->p_cred)); - gid = kauth_cred_geteuid(gid); + gid = kauth_cred_geteuid(p->p_cred); kauth_cred_setgroups(cred, &gid, 1, -1); break; case -6: /* NGROUPS_RGID_SUPP */