summaryrefslogtreecommitdiff
path: root/tree-walk.h
diff options
context:
space:
mode:
authorLibravatar Brandon Williams <bmwill@google.com>2016-12-12 10:16:52 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-12-12 15:22:32 -0800
commit05b458c104708141d2fad211d79703b3b99cc5a8 (patch)
tree54ba82f179703c3d08ac58b7e6f72746c238daa2 /tree-walk.h
parentStart post 2.11 cycle (diff)
downloadtgif-05b458c104708141d2fad211d79703b3b99cc5a8.tar.xz
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 'tree-walk.h')
0 files changed, 0 insertions, 0 deletions