Re: [PATCH v3 02/10] unix-sockets: use strbuf_getcwd()

2014-07-28 Thread Jeff King
On Mon, Jul 28, 2014 at 08:25:40PM +0200, René Scharfe wrote: > 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 ENAMET

[PATCH v3 02/10] unix-sockets: use strbuf_getcwd()

2014-07-28 Thread René Scharfe
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