summaryrefslogtreecommitdiff
path: root/walker.h
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2014-07-28 20:25:40 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-07-28 13:49:02 -0700
commitd13a0a97e097c6a601bafc529a716477cc94dc20 (patch)
tree8f91df872cdc0abdc0c3d0f0f3d54f2b6b316908 /walker.h
parentstrbuf: add strbuf_getcwd() (diff)
downloadtgif-d13a0a97e097c6a601bafc529a716477cc94dc20.tar.xz
unix-sockets: use strbuf_getcwd()
Instead of using a PATH_MAX-sized buffer, which can be too small on some file systems, use strbuf_getcwd(), which handles any path getcwd() returns. Also preserve the errno set by strbuf_getcwd() instead of setting it to ENAMETOOLONG; that way a more appropriate error message can be shown based on the actual reason for failing. Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'walker.h')
0 files changed, 0 insertions, 0 deletions