]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/mountd/cache.c
Removed warnings from fsloc.c
[nfs-utils.git] / utils / mountd / cache.c
index 9e1b16402009daeae9e828ebf47f3bb268701e56..54880561bec026aa09e4b60802a2c77c690a083c 100644 (file)
@@ -513,7 +513,7 @@ void nfsd_fh(FILE *f)
                                        for (type = 0;
                                             uuid_by_path(path, type, uuidlen, u);
                                             type++)
-                                               if (memcmp(u, fhuuid, uuidlen) != 0)
+                                               if (memcmp(u, fhuuid, uuidlen) == 0)
                                                        break;
 
                                if (memcmp(u, fhuuid, uuidlen) != 0)
@@ -600,7 +600,7 @@ static void write_fsloc(FILE *f, struct exportent *ep, char *path)
        if (ep->e_fslocmethod == FSLOC_NONE)
                return;
 
-       servers = replicas_lookup(ep->e_fslocmethod, ep->e_fslocdata, path);
+       servers = replicas_lookup(ep->e_fslocmethod, ep->e_fslocdata);
        if (!servers)
                return;
        qword_print(f, "fsloc");