Merge branch 'bw/realpath-wo-chdir' into next
authorJunio C Hamano <gitster@pobox.com>
Tue, 10 Jan 2017 23:27:27 +0000 (15:27 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 10 Jan 2017 23:27:27 +0000 (15:27 -0800)
commited315a40c841738a737d22412ac07cc3cc8fddc0
treefe7efc01d79c5d9ef62695531d86083c8c5081b3
parent260009f03bc5afcf8c9592ce08e5b8bc89ed89c7
parent0b9864aa28ba08d7fb901afee1a75a15e4ad431b
Merge branch 'bw/realpath-wo-chdir' into next

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