From b116e781f6ea9b16d88741e9f1b4a9d0448807fa Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Sat, 22 Apr 2006 04:32:36 -0400 Subject: [PATCH] Fix bug which could cause dumpe2fs to rarely fail to print a UUID uuid.c (e2p_is_null_uuid): Fix really stupid bug which could cause dumpe2fs to fail to display a the journal or hash seed UUID. (Thanks to Guillaume Chambraud for pointing this out.) Signed-off-by: "Theodore Ts'o" --- lib/e2p/ChangeLog | 7 +++++++ lib/e2p/uuid.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/e2p/ChangeLog b/lib/e2p/ChangeLog index 756227b..358e108 100644 --- a/lib/e2p/ChangeLog +++ b/lib/e2p/ChangeLog @@ -1,3 +1,10 @@ +2006-04-18 Theodore Ts'o + + * uuid.c (e2p_is_null_uuid): Fix really stupid bug which could + cause dumpe2fs to fail to display a the journal or hash + seed UUID. (Thanks to Guillaume Chambraud for pointing + this out.) + 2006-03-23 Theodore Ts'o * feature.c (e2p_edit_feature): If the pseudo-feature "none" or diff --git a/lib/e2p/uuid.c b/lib/e2p/uuid.c index fef3b91..60d42ba 100644 --- a/lib/e2p/uuid.c +++ b/lib/e2p/uuid.c @@ -23,7 +23,7 @@ int e2p_is_null_uuid(void *uu) int i; for (i=0, cp = uu; i < 16; i++) - if (*cp) + if (*cp++) return 0; return 1; } -- 1.8.3.1