]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
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 5d154d0b4375912645c31a48ed318e8842588260..711daa96d08e8b750a7cf9de898cd7b56e936db4 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 113d182ebe606fac5f7445febc58484786f48500..1d21fe5edc9f86adcc3f890a0a1d7eb9c22b9c47 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? */
 }