]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
Fix stupid bug; dx_hack_hash was left-shifted by one in CPP macro
authorTheodore Ts'o <tytso@mit.edu>
Tue, 12 Mar 2002 18:41:31 +0000 (13:41 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 12 Mar 2002 18:41:31 +0000 (13:41 -0500)
trap.

lib/ext2fs/dirhash.c

index 5f71c6d0896bb202d7f0da46433eef6a9201afc1..87e86d9474f468341218c0e73c1092a595d7b088 100644 (file)
@@ -26,7 +26,7 @@ static ext2_dirhash_t dx_hack_hash (const char *name, int len)
                hash1 = hash0;
                hash0 = hash;
        }
-       return hash0;
+       return (hash0 << 1);
 }
 
 /*