From: Neil Brown Date: Tue, 27 Feb 2007 04:54:55 +0000 (+1100) Subject: Fix silly bug with gid lookup X-Git-Tag: nfs-utils-1-0-12~1 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=commitdiff_plain;h=4b9f9e2e5ea09dfbf2da26e9de0902a42e04c0d3 Fix silly bug with gid lookup Wrong pointer test meant mountd would alway do gid lookups instead of only if asked to with '-g'. Signed-off-by: Neil Brown --- diff --git a/utils/mountd/cache.c b/utils/mountd/cache.c index 5f0d12a..fbe829e 100644 --- a/utils/mountd/cache.c +++ b/utils/mountd/cache.c @@ -548,7 +548,7 @@ void cache_open(void) int i; for (i=0; cachelist[i].cache_name; i++ ) { char path[100]; - if (!manage_gids && cachelist[i].f == auth_unix_gid) + if (!manage_gids && cachelist[i].cache_handle == auth_unix_gid) continue; sprintf(path, "/proc/net/rpc/%s/channel", cachelist[i].cache_name); cachelist[i].f = fopen(path, "r+");