Win32: fix checkout problem with directories exceeding MAX_PATH
commitd49a7084cee54f97d601361d5b8fdf284e2922b9
authorKarsten Blees <blees@dcon.de>
Wed, 2 Jul 2014 20:39:43 +0000 (2 22:39 +0200)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 3 Jul 2014 17:44:52 +0000 (3 12:44 -0500)
treed1f96c8c88d0194a7f3563aee80fd1e3f0183e32
parent840d1f9d282082a304c72066036a642c35a1883e
Win32: fix checkout problem with directories exceeding MAX_PATH

The lstat_cache in symlinks.c checks if the leading directory exists using
PATH_MAX-bounded string operations, which fails if a directory is longer
than 259 characters.

Signed-off-by: Karsten Blees <blees@dcon.de>
compat/mingw.c
symlinks.c