real_path: set errno when max number of symlinks is exceeded
commit0b9864aa28ba08d7fb901afee1a75a15e4ad431b
authorBrandon Williams <bmwill@google.com>
Mon, 9 Jan 2017 18:50:24 +0000 (9 10:50 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Jan 2017 19:26:10 +0000 (9 11:26 -0800)
tree77732f4692453697ef66e9b57086f530d21969d3
parent7aeb81f1de6a06c7ebc9a881e3a07591d760c9d6
real_path: set errno when max number of symlinks is exceeded

Set errno to ELOOP when the maximum number of symlinks is exceeded, as
would be done by other symlink-resolving functions.

Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
abspath.c