* [PATCH] mountd: group length not being set correctly in auth_unix_gid
@ 2011-06-07 15:56 Steve Dickson
2011-06-07 18:41 ` Pavel Shilovsky
0 siblings, 1 reply; 3+ messages in thread
From: Steve Dickson @ 2011-06-07 15:56 UTC (permalink / raw)
To: Linux NFS Mailing list
From: Rinat Bikov <becase@altlinux.org>
Commit 9274e94d introduce dynamic buffering for gids lists.
In that patch there was a bug that only used the dynamic
length on the first call, resulting in the dynamic length
not being dynamic at all.
Reported-by: Rinat Bikov <becase@altlinux.org>
Signed-off-by: Steve Dickson <steved@redhat.com>
---
utils/mountd/cache.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/utils/mountd/cache.c b/utils/mountd/cache.c
index 0c4a03d..6084893 100644
--- a/utils/mountd/cache.c
+++ b/utils/mountd/cache.c
@@ -147,8 +147,9 @@ static void auth_unix_gid(FILE *f)
if (!groups)
return;
- groups_len = ngroups = INITIAL_MANAGED_GROUPS;
+ groups_len = INITIAL_MANAGED_GROUPS;
}
+ ngroups = groups_len;
if (readline(fileno(f), &lbuf, &lbuflen) != 1)
return;
--
1.7.5.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] mountd: group length not being set correctly in auth_unix_gid
2011-06-07 15:56 [PATCH] mountd: group length not being set correctly in auth_unix_gid Steve Dickson
@ 2011-06-07 18:41 ` Pavel Shilovsky
2011-06-08 3:16 ` Steve Dickson
0 siblings, 1 reply; 3+ messages in thread
From: Pavel Shilovsky @ 2011-06-07 18:41 UTC (permalink / raw)
To: Steve Dickson; +Cc: Linux NFS Mailing list
2011/6/7 Steve Dickson <steved@redhat.com>:
> From: Rinat Bikov <becase@altlinux.org>
>
> Commit 9274e94d introduce dynamic buffering for gids lists.
> In that patch there was a bug that only used the dynamic
> length on the first call, resulting in the dynamic length
> not being dynamic at all.
>
> Reported-by: Rinat Bikov <becase@altlinux.org>
> Signed-off-by: Steve Dickson <steved@redhat.com>
> ---
> utils/mountd/cache.c | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/utils/mountd/cache.c b/utils/mountd/cache.c
> index 0c4a03d..6084893 100644
> --- a/utils/mountd/cache.c
> +++ b/utils/mountd/cache.c
> @@ -147,8 +147,9 @@ static void auth_unix_gid(FILE *f)
> if (!groups)
> return;
>
> - groups_len = ngroups = INITIAL_MANAGED_GROUPS;
> + groups_len = INITIAL_MANAGED_GROUPS;
> }
> + ngroups = groups_len;
>
> if (readline(fileno(f), &lbuf, &lbuflen) != 1)
> return;
> --
> 1.7.5.1
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
Looks good. It's almost the same, as I sent before "mountd: Fix
missing varialble assignment in auth_unix_gid"
(https://patchwork.kernel.org/patch/841452/) but it haven't got any
comments yet.
--
Best regards,
Pavel Shilovsky.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] mountd: group length not being set correctly in auth_unix_gid
2011-06-07 18:41 ` Pavel Shilovsky
@ 2011-06-08 3:16 ` Steve Dickson
0 siblings, 0 replies; 3+ messages in thread
From: Steve Dickson @ 2011-06-08 3:16 UTC (permalink / raw)
To: Pavel Shilovsky; +Cc: Linux NFS Mailing list
On 06/07/2011 02:41 PM, Pavel Shilovsky wrote:
> 2011/6/7 Steve Dickson <steved@redhat.com>:
>> From: Rinat Bikov <becase@altlinux.org>
>>
>> Commit 9274e94d introduce dynamic buffering for gids lists.
>> In that patch there was a bug that only used the dynamic
>> length on the first call, resulting in the dynamic length
>> not being dynamic at all.
>>
>> Reported-by: Rinat Bikov <becase@altlinux.org>
>> Signed-off-by: Steve Dickson <steved@redhat.com>
>> ---
>> utils/mountd/cache.c | 3 ++-
>> 1 files changed, 2 insertions(+), 1 deletions(-)
>>
>> diff --git a/utils/mountd/cache.c b/utils/mountd/cache.c
>> index 0c4a03d..6084893 100644
>> --- a/utils/mountd/cache.c
>> +++ b/utils/mountd/cache.c
>> @@ -147,8 +147,9 @@ static void auth_unix_gid(FILE *f)
>> if (!groups)
>> return;
>>
>> - groups_len = ngroups = INITIAL_MANAGED_GROUPS;
>> + groups_len = INITIAL_MANAGED_GROUPS;
>> }
>> + ngroups = groups_len;
>>
>> if (readline(fileno(f), &lbuf, &lbuflen) != 1)
>> return;
>> --
>> 1.7.5.1
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
>
> Looks good. It's almost the same, as I sent before "mountd: Fix
> missing varialble assignment in auth_unix_gid"
> (https://patchwork.kernel.org/patch/841452/) but it haven't got any
> comments yet.
>
yeah.. Rinat sent me some private mail about this regression and
I made this posting before I remember you had already post a
similar patch... So I did commit your patch...
steved.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-06-08 3:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-07 15:56 [PATCH] mountd: group length not being set correctly in auth_unix_gid Steve Dickson
2011-06-07 18:41 ` Pavel Shilovsky
2011-06-08 3:16 ` Steve Dickson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).