From: Junio C Hamano Date: Wed, 18 Jan 2017 23:12:16 +0000 (-0800) Subject: Merge branch 'bw/realpath-wo-chdir' X-Git-Tag: v2.12.0-rc0~61 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/1c16df23b19e8d37d896e68c92d8341d6e60b4dc?hp=1c16df23b19e8d37d896e68c92d8341d6e60b4dc Merge branch 'bw/realpath-wo-chdir' The implementation of "real_path()" was to go there with chdir(2) and call getcwd(3), but this obviously wouldn't be usable in a threaded environment. Rewrite it to manually resolve relative paths including symbolic links in path components. * bw/realpath-wo-chdir: real_path: set errno when max number of symlinks is exceeded real_path: prevent redefinition of MAXSYMLINKS ---