mirror of
https://github.com/git/git.git
synced 2024-10-28 12:59:41 +01:00
2a0e11479f
The IPC socket used by the fsmonitor on Darwin is usually contained in the Git repository itself. When the repository is hosted on a networked filesystem though, we instead create the socket path in the user's home directory or the socket directory. In that case, we derive the path by hashing the repository path. But while we always use SHA1 to hash the repository path, we then end up using `hash_to_hex()` to append the computed hash to the socket path. This is wrong because `hash_to_hex()` uses the hash algorithm configured in `the_repository`, which may not be SHA1. The consequence is that we may append uninitialized bytes to the path when operating in a SHA256 repository. Fix this bug by using `hash_to_hex_algop()` with SHA1. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com> |
||
---|---|---|
.. | ||
fsm-darwin-gcc.h | ||
fsm-health-darwin.c | ||
fsm-health-win32.c | ||
fsm-health.h | ||
fsm-ipc-darwin.c | ||
fsm-ipc-win32.c | ||
fsm-listen-darwin.c | ||
fsm-listen-win32.c | ||
fsm-listen.h | ||
fsm-path-utils-darwin.c | ||
fsm-path-utils-win32.c | ||
fsm-settings-darwin.c | ||
fsm-settings-win32.c |