walters / rpms / nfs-utils

Forked from rpms/nfs-utils 6 years ago
Clone
f5b3ef3
commit 86c3a79a108091fe08869a887438cc2d4e1126ed
f5b3ef3
Author: Neil Brown <neilb@suse.de>
f5b3ef3
Date:   Wed Aug 27 16:30:19 2008 -0400
f5b3ef3
f5b3ef3
    mount issue with Mac OSX and --manage-gids, client hangs
f5b3ef3
    
f5b3ef3
    Make sure are zero len group list is sent down to the
f5b3ef3
    kernel when the gids do not exist on the server.
f5b3ef3
    
f5b3ef3
    Tested-by: Alex Samad <alex@samad.com.au>
f5b3ef3
    Signed-off-by: Neil Brown <neilb@suse.de>
f5b3ef3
    Signed-off-by: Steve Dickson <steved@redhat.com>
f5b3ef3
f5b3ef3
diff --git a/utils/mountd/cache.c b/utils/mountd/cache.c
f5b3ef3
index f555dcc..609c6e3 100644
f5b3ef3
--- a/utils/mountd/cache.c
f5b3ef3
+++ b/utils/mountd/cache.c
f5b3ef3
@@ -158,8 +158,10 @@ void auth_unix_gid(FILE *f)
f5b3ef3
 		qword_printint(f, ngroups);
f5b3ef3
 		for (i=0; i
f5b3ef3
 			qword_printint(f, groups[i]);
f5b3ef3
-	}
f5b3ef3
+	} else
f5b3ef3
+		qword_printint(f, 0);
f5b3ef3
 	qword_eol(f);
f5b3ef3
+
f5b3ef3
 	if (groups != glist)
f5b3ef3
 		free(groups);
f5b3ef3
 }