]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
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 f555dcc69684c83b60e8da7345224c0c893eb149..609c6e3ed015f23b14934471104d184c06be5590 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);
 }