mountd: group length not being set correctly in auth_unix_gid
Subsystems (2)
PATCH 1/1 mountd: group length not being set correctly in auth_unix_gid
From: Rinat Bikov <[email protected]>
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.
--- utils/mountd/cache.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
utils/mountd/cache.c +2 -1
@@ -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 ;
Signature · 1 line
1.7.5.1
2011/6/7 Steve Dickson <[email protected]>:
Quoted 31 lines
From: Rinat Bikov <[email protected]>
Commit
9274e94dintroduce 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 <[email protected]>Signed-off-by Steve Dickson <[email protected]>---
utils/mountd/cache.c | 3 ++-1 files changed, 2 insertions(+), 1 deletions(-)utils/mountd/cache.c +2
-2@@ -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
Quoted 5 lines
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to [email protected]
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.
Signature · 2 lines
Best regards, Pavel Shilovsky.
Quoted 32 lines · Pavel Shilovsky
2011/6/7 Steve Dickson <[email protected]>:
Quoted 31 lines
From: Rinat Bikov <[email protected]>
Commit
9274e94dintroduce 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 <[email protected]>Signed-off-by Steve Dickson <[email protected]>--- utils/mountd/cache.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)utils/mountd/cache.c +2
-2@@ -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
Quoted 11 lines
Quoted 5 lines
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.htmlLooks 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.