From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from fieldses.org ([174.143.236.118]:56284 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751671Ab1FGXBJ (ORCPT ); Tue, 7 Jun 2011 19:01:09 -0400 Date: Tue, 7 Jun 2011 19:01:07 -0400 To: Pavel Shilovsky Cc: linux-nfs@vger.kernel.org, Sean Finney , Steve Dickson Subject: Re: Regression in current master Message-ID: <20110607230107.GD13911@fieldses.org> References: Content-Type: text/plain; charset=us-ascii In-Reply-To: From: "J. Bruce Fields" Sender: linux-nfs-owner@vger.kernel.org List-ID: MIME-Version: 1.0 On Wed, Jun 01, 2011 at 11:43:47AM +0400, Pavel Shilovsky wrote: > Commit 9274e94db85bac04e170414cb8e0f4be271cde90 > (http://git.linux-nfs.org/?p=steved/nfs-utils.git;a=commit;h=9274e94db85bac04e170414cb8e0f4be271cde90) > caused the regression when --manage-gids option is enabled: a user > doesn't get group list through getgrouplist when auth_unix_gid is > called twice. When I remove static attributes from gid_t *groups and > int groups_len, it works good. Looking at the patch.... Hm, I can't spot the bug. Sean? (Also, not a correctness issue, but: shouldn't if (rv == -1 && ngroups >= groups_len) { be if (rv == -1 && ngroups > groups_len) { ? And, finally, why do we need the separate groups_len == 0 case at the start at all? The realloc case should be able to handle the initial case as well. ) --b.