mount issue with Mac OSX and --manage-gids, client hangs
authorNeil Brown <neilb@suse.de>
Wed, 27 Aug 2008 20:30:19 +0000 (16:30 -0400)
committerSteve Dickson <steved@dickson.boston.devel.redhat.com>
Wed, 27 Aug 2008 20:30:19 +0000 (16:30 -0400)
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>
utils/mountd/cache.c

index f555dcc..609c6e3 100644 (file)
@@ -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);
 }