4.4BSD-Lite2
4.4BSD-Lite2 copied to clipboard
Why are you not releasing the vnode of the starting directory when returning from namei()?
https://github.com/sergev/4.4BSD-Lite2/blob/50587b00e922225c62f1706266587f435898126d/usr/src/sys/kern/vfs_lookup.c#L153
If the result of lookup() is a not a symbolic link, you return instantly, so you don't release the vnode of the starting directory