From a53726f2a721fc4a5a9eced67771002002006476 Mon Sep 17 00:00:00 2001 From: yamt Date: Wed, 24 May 2006 23:00:49 +0000 Subject: [PATCH] kauth_cred_uucmp: fix inversed return code. PR/33546 from Juan RP. --- sys/kern/kern_auth.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/kern/kern_auth.c b/sys/kern/kern_auth.c index 4b178f5abfc2..63ff129be4fb 100644 --- a/sys/kern/kern_auth.c +++ b/sys/kern/kern_auth.c @@ -1,4 +1,4 @@ -/* $NetBSD: kern_auth.c,v 1.3 2006/05/23 00:43:30 yamt Exp $ */ +/* $NetBSD: kern_auth.c,v 1.4 2006/05/24 23:00:49 yamt Exp $ */ /*- * Copyright (c) 2005, 2006 Elad Efrat @@ -457,13 +457,13 @@ kauth_cred_uucmp(kauth_cred_t cred, const struct uucred *uuc) ismember = 0; if (kauth_cred_ismember_gid(cred, uuc->cr_groups[i], &ismember) != 0 || !ismember) - return (0); + return (1); } - return (1); + return (0); } - return (0); + return (1); } /*