aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/persistent-https
diff options
context:
space:
mode:
authorKarsten Blees <karsten.blees@gmail.com>2026-01-09 20:05:07 +0000
committerJunio C Hamano <gitster@pobox.com>2026-01-09 18:28:36 -0800
commit0fcbb57f970f318df422ca756a269651885576b9 (patch)
tree2f51b009cb71b86d0601214c270011ea9a5c92cb /contrib/persistent-https
parentinit: do parse _all_ core.* settings early (diff)
downloadgit-0fcbb57f970f318df422ca756a269651885576b9.tar.gz
git-0fcbb57f970f318df422ca756a269651885576b9.zip
strbuf_readlink(): avoid calling `readlink()` twice in corner-cases
The `strbuf_readlink()` function calls `readlink()`` twice if the hint argument specifies the exact size of the link target (e.g. by passing stat.st_size as returned by `lstat()`). This is necessary because `readlink(..., hint) == hint` could mean that the buffer was too small. Use `hint + 1` as buffer size to prevent this. Signed-off-by: Karsten Blees <karsten.blees@gmail.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions