Skip to contentSkip to conversation

Fix memcmp result comparison error for uuid match.

PATCH Doug Nazar 2 participants 2 messages Jul 1, 2010 – Jul 19, 2010

Subsystems (2)
lore
Share & tools
lore

Doug Nazar

author
#0 lore raw

Small typo in the new fs uuid comparison code.

commit 361f6d6c5da3c5c5ba709f8f3704865b0f7267cc

Author: Doug Nazar <[email protected]>
Date:   Thu Jul 1 05:37:23 2010 -0400

Fix memcmp result comparison error for uuid match.

utils/mountd/cache.c +1 -1
index 9e1b164..bf18a9a 100644
@@ -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)
#1 lore raw
Quoted 2 lines · Doug Nazar

Small typo in the new fs uuid comparison code.

Committed....

steved.