summaryrefslogtreecommitdiff
path: root/alias.c
diff options
context:
space:
mode:
authorBrandon Williams <bmwill@google.com>2016-12-12 10:16:52 -0800
committerJunio C Hamano <gitster@pobox.com>2016-12-12 15:22:32 -0800
commit05b458c104708141d2fad211d79703b3b99cc5a8 (patch)
tree54ba82f179703c3d08ac58b7e6f72746c238daa2 /alias.c
parent8d7a455ed52e2a96debc080dfc011b6bb00db5d2 (diff)
downloadgit-05b458c104708141d2fad211d79703b3b99cc5a8.tar.gz
real_path: resolve symlinks by hand
The current implementation of real_path uses chdir() in order to resolve symlinks. Unfortunately this isn't thread-safe as chdir() affects a process as a whole and not just an individual thread. Instead perform the symlink resolution by hand so that the calls to chdir() can be removed, making real_path one step closer to being reentrant. Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'alias.c')
0 files changed, 0 insertions, 0 deletions