diff options
author | Theodore Ts'o <tytso@mit.edu> | 2006-04-22 04:32:36 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2006-04-22 04:32:36 -0400 |
commit | b116e781f6ea9b16d88741e9f1b4a9d0448807fa (patch) | |
tree | 589978ef8bcb364dcb52d430b654ecddb989115b | |
parent | 7aea126e85132efe957c3a66247233fe963e8afb (diff) | |
download | e2fsprogs-b116e781f6ea9b16d88741e9f1b4a9d0448807fa.tar.gz |
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" <tytso@mit.edu>
-rw-r--r-- | lib/e2p/ChangeLog | 7 | ||||
-rw-r--r-- | lib/e2p/uuid.c | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/lib/e2p/ChangeLog b/lib/e2p/ChangeLog index 756227b9..358e108c 100644 --- a/lib/e2p/ChangeLog +++ b/lib/e2p/ChangeLog @@ -1,3 +1,10 @@ +2006-04-18 Theodore Ts'o <tytso@mit.edu> + + * 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 <tytso@mit.edu> * feature.c (e2p_edit_feature): If the pseudo-feature "none" or diff --git a/lib/e2p/uuid.c b/lib/e2p/uuid.c index fef3b91e..60d42bae 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; } |