From dd378adf6934a64d6fea411797106903221c1702 Mon Sep 17 00:00:00 2001 From: dsl <dsl@NetBSD.org> Date: Fri, 6 Jul 2007 17:27:49 +0000 Subject: [PATCH] Fix intverted test, should fix nfs and hp700 issues. --- sys/kern/kern_auth.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/kern/kern_auth.c b/sys/kern/kern_auth.c index 58db13a8bc31..82d6f1fd93a5 100644 --- a/sys/kern/kern_auth.c +++ b/sys/kern/kern_auth.c @@ -1,4 +1,4 @@ -/* $NetBSD: kern_auth.c,v 1.49 2007/06/30 13:32:14 dsl Exp $ */ +/* $NetBSD: kern_auth.c,v 1.50 2007/07/06 17:27:49 dsl Exp $ */ /*- * Copyright (c) 2005, 2006 Elad Efrat <elad@NetBSD.org> @@ -28,7 +28,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: kern_auth.c,v 1.49 2007/06/30 13:32:14 dsl Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_auth.c,v 1.50 2007/07/06 17:27:49 dsl Exp $"); #include <sys/types.h> #include <sys/param.h> @@ -404,7 +404,7 @@ kauth_cred_setgroups(kauth_cred_t cred, const gid_t *grbuf, size_t len, return EINVAL; if (len) { - if ((flags & (UIO_USERSPACE | UIO_SYSSPACE)) == UIO_USERSPACE) + if ((flags & (UIO_USERSPACE | UIO_SYSSPACE)) == UIO_SYSSPACE) memcpy(cred->cr_groups, grbuf, len * sizeof(cred->cr_groups[0])); else {