Whamcloud - gitweb
dirhash.c (halfMD4Transform): Shift the hash by one bit,
authorTheodore Ts'o <tytso@mit.edu>
Sat, 20 Jul 2002 02:30:37 +0000 (22:30 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 20 Jul 2002 02:30:37 +0000 (22:30 -0400)
since that's required by the directory indexing code.

lib/ext2fs/ChangeLog
lib/ext2fs/dirhash.c

index 5d154d0..711daa9 100644 (file)
@@ -1,3 +1,8 @@
+2002-07-19  Theodore Ts'o  <tytso@mit.edu>
+
+       * dirhash.c (halfMD4Transform): Shift the hash by one bit,
+               since that's required by the directory indexing code.
+
 2002-07-14  Theodore Ts'o  <tytso@mit.edu>
 
        * ext2fs.h, read_bb_file.c: Change private to priv_data, to avoid
index 113d182..1d21fe5 100644 (file)
@@ -75,7 +75,7 @@ static __u32 halfMD4Transform (__u32 buf[4], __u32 const in[])
        buf[2] += c;
        buf[3] += d;
 
-       return buf[1];  /* "most hashed" word */
+       return (buf[1] << 1);   /* "most hashed" word */
        /* Alternative: return sum of all words? */
 }