diff options
author | Brandon Williams <bmwill@google.com> | 2016-12-12 10:16:52 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-12-12 15:22:32 -0800 |
commit | 05b458c104708141d2fad211d79703b3b99cc5a8 (patch) | |
tree | 54ba82f179703c3d08ac58b7e6f72746c238daa2 /unicode_width.h | |
parent | 8d7a455ed52e2a96debc080dfc011b6bb00db5d2 (diff) | |
download | git-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 'unicode_width.h')
0 files changed, 0 insertions, 0 deletions