summaryrefslogtreecommitdiffstats
path: root/utils/mountd/cache.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2008-08-27 16:30:19 -0400
committerSteve Dickson <steved@dickson.boston.devel.redhat.com>2008-08-27 16:30:19 -0400
commit86c3a79a108091fe08869a887438cc2d4e1126ed (patch)
tree1d2c172a33437f4bf37532aaa873f8041c67db6e /utils/mountd/cache.c
parent2d173a587a7dbee81ffaf246d044f384fb6487c8 (diff)
downloadnfs-utils-86c3a79a108091fe08869a887438cc2d4e1126ed.tar.gz
nfs-utils-86c3a79a108091fe08869a887438cc2d4e1126ed.tar.xz
nfs-utils-86c3a79a108091fe08869a887438cc2d4e1126ed.zip
mount issue with Mac OSX and --manage-gids, client hangs
Make sure are zero len group list is sent down to the kernel when the gids do not exist on the server. Tested-by: Alex Samad <alex@samad.com.au> Signed-off-by: Neil Brown <neilb@suse.de> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils/mountd/cache.c')
-rw-r--r--utils/mountd/cache.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/mountd/cache.c b/utils/mountd/cache.c
index f555dcc..609c6e3 100644
--- a/utils/mountd/cache.c
+++ b/utils/mountd/cache.c
@@ -158,8 +158,10 @@ void auth_unix_gid(FILE *f)
qword_printint(f, ngroups);
for (i=0; i<ngroups; i++)
qword_printint(f, groups[i]);
- }
+ } else
+ qword_printint(f, 0);
qword_eol(f);
+
if (groups != glist)
free(groups);
}