From: Doug Nazar Date: Mon, 19 Jul 2010 14:58:47 +0000 (-0400) Subject: mountd: Fix memcmp result comparison error for uuid match. X-Git-Tag: nfs-utils-1-2-3-rc5~25 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=commitdiff_plain;h=e2aa2c8c4cc21eb312a301855c2e211dedf93146;hp=eafc5a8873b09482c71313f425080cce2031010a mountd: Fix memcmp result comparison error for uuid match. Fixed Small typo in the new fs uuid comparison code Signed-off-by: Steve Dickson --- diff --git a/utils/mountd/cache.c b/utils/mountd/cache.c index 9e1b164..bf18a9a 100644 --- a/utils/mountd/cache.c +++ b/utils/mountd/cache.c @@ -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)