]> git.ipfire.org Git - thirdparty/git.git/commit
strbuf_readlink(): support link targets that exceed PATH_MAX
authorKarsten Blees <blees@dcon.de>
Tue, 16 Dec 2025 15:33:48 +0000 (15:33 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 17 Dec 2025 23:21:07 +0000 (08:21 +0900)
commit5f09f93726e71552a0f5ffd72d488ed8dbbedee9
tree2c0c4521232af312f9a07bdbb3bf60e1c89c4df1
parentac2339de65c545b23e93ecf0e10dd0c2870de8a6
strbuf_readlink(): support link targets that exceed PATH_MAX

The `strbuf_readlink()` function refuses to read link targets that
exceed PATH_MAX (even if a sufficient size was specified by the caller).

As some platforms (*cough* Windows *cough*) support longer paths, remove
this restriction (similar to `strbuf_getcwd()`).

Signed-off-by: Karsten Blees <blees@dcon.de>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
strbuf.c