]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Fix silly bug with gid lookup
authorNeil Brown <neilb@suse.de>
Tue, 27 Feb 2007 04:54:55 +0000 (15:54 +1100)
committerNeil Brown <neilb@suse.de>
Tue, 27 Feb 2007 04:54:55 +0000 (15:54 +1100)
Wrong pointer test meant mountd would alway do gid lookups
instead of only if asked to with '-g'.

Signed-off-by: Neil Brown <neilb@suse.de>
utils/mountd/cache.c

index 5f0d12a7fcaaf742b1f39f7b04428b52e748dcd8..fbe829e2d3fc188fbe686fc78a820199b5951ac3 100644 (file)
@@ -548,7 +548,7 @@ void cache_open(void)
        int i;
        for (i=0; cachelist[i].cache_name; i++ ) {
                char path[100];
        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+");
                        continue;
                sprintf(path, "/proc/net/rpc/%s/channel", cachelist[i].cache_name);
                cachelist[i].f = fopen(path, "r+");