diff options
author | 2016-12-12 10:16:52 -0800 | |
---|---|---|
committer | 2016-12-12 15:22:32 -0800 | |
commit | 05b458c104708141d2fad211d79703b3b99cc5a8 (patch) | |
tree | 54ba82f179703c3d08ac58b7e6f72746c238daa2 /fsck.h | |
parent | Start post 2.11 cycle (diff) | |
download | tgif-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 'fsck.h')
0 files changed, 0 insertions, 0 deletions