]> git.decadent.org.uk Git - nfs-utils.git/commit
mountd: Fix missing varialble assignment in auth_unix_gid
authorPavel Shilovsky <piastry@etersoft.ru>
Tue, 7 Jun 2011 17:18:13 +0000 (13:18 -0400)
committerSteve Dickson <steved@redhat.com>
Tue, 7 Jun 2011 17:18:13 +0000 (13:18 -0400)
commit40aed2c3fb5164195a9975ae7f15ebd4b992839d
tree56fdf850211c958d53c4cc21297faba34e9a227a
parent8935933dedcd820c2fb3dddff8b79fd5841dc217
mountd: Fix missing varialble assignment in auth_unix_gid

When we get into auth_unix_gid at the second time, groups_len
is not 0 and ngroups variable leave as 0. Then we use ngroups
in getgrouplist that fails in this case. This patch fixes it.

Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/mountd/cache.c