]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
mountd: Fix memcmp result comparison error for uuid match.
authorDoug Nazar <nazard.michi@gmail.com>
Mon, 19 Jul 2010 14:58:47 +0000 (10:58 -0400)
committerSteve Dickson <steved@redhat.com>
Mon, 19 Jul 2010 14:58:47 +0000 (10:58 -0400)
Fixed Small typo in the new fs uuid comparison code

Signed-off-by: Steve Dickson <steved@redhat.com>
utils/mountd/cache.c

index 9e1b16402009daeae9e828ebf47f3bb268701e56..bf18a9aba169d53ee05279957a7cfa9b4a64540d 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)