symlinks: remove PATH_MAX limitation
authorKarsten Blees <karsten.blees@gmail.com>
Fri, 4 Jul 2014 22:41:46 +0000 (00:41 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Jul 2014 18:22:42 +0000 (11:22 -0700)
'git checkout' fails if a directory is longer than PATH_MAX, because the
lstat_cache in symlinks.c checks if the leading directory exists using
PATH_MAX-bounded string operations.

Remove the limitation by using strbuf instead.

Signed-off-by: Karsten Blees <blees@dcon.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found