shithub: gefs

Download patch

ref: d10e2f7bfb7fb08d15660a78b6a577ef7e4a8a5a
parent: 0c0d2c1702d0f9b5e984a7c90308a19a594a8abb
author: Michael Forney <[email protected]>
date: Thu Feb 3 05:54:15 EST 2022

fs: fix incorrect fid hash when highest bit is set

Other functions using fidtab zero-extend fid before hashing, so we
need to do the same in dupfid to make sure we hash to the same slot.

--- a/fs.c
+++ b/fs.c
@@ -440,7 +440,7 @@
 }
 
 static Fid*
-dupfid(int new, Fid *f)
+dupfid(u32int new, Fid *f)
 {
 	Fid *n, *o;
 	u32int h;