summaryrefslogtreecommitdiff
path: root/sys/compat/linux/common/linux_misc_notalpha.c
diff options
context:
space:
mode:
authortron <tron@NetBSD.org>2002-04-03 14:28:36 +0000
committertron <tron@NetBSD.org>2002-04-03 14:28:36 +0000
commit9121bc2ec43b5d1bf8bea8670947ce0582dbd85b (patch)
treeb6921bc803f8811abc981354fb89c4abb2ba47b2 /sys/compat/linux/common/linux_misc_notalpha.c
parent27bb7459fc2b524ed884d689d12f90ecd5006f7d (diff)
Fix a cut and paste error in the emulation of getresgid(2): it returned
the effective user id as effective group id.
Diffstat (limited to 'sys/compat/linux/common/linux_misc_notalpha.c')
-rw-r--r--sys/compat/linux/common/linux_misc_notalpha.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/compat/linux/common/linux_misc_notalpha.c b/sys/compat/linux/common/linux_misc_notalpha.c
index cf15c603370..6da33cb2ff2 100644
--- a/sys/compat/linux/common/linux_misc_notalpha.c
+++ b/sys/compat/linux/common/linux_misc_notalpha.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_misc_notalpha.c,v 1.62 2002/03/16 20:43:53 christos Exp $ */
+/* $NetBSD: linux_misc_notalpha.c,v 1.63 2002/04/03 14:28:36 tron Exp $ */
/*-
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_misc_notalpha.c,v 1.62 2002/03/16 20:43:53 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_misc_notalpha.c,v 1.63 2002/04/03 14:28:36 tron Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -391,7 +391,7 @@ linux_sys_getresgid(p, v, retval)
sizeof(gid_t))) != 0)
return (error);
- if ((error = copyout(&pc->pc_ucred->cr_uid, SCARG(uap, egid),
+ if ((error = copyout(&pc->pc_ucred->cr_gid, SCARG(uap, egid),
sizeof(gid_t))) != 0)
return (error);