From: Junio C Hamano Date: Fri, 07 Oct 2011 22:26:18 GMT Subject: Re: [PATCH 1/2] Add Git::config_path() Message-ID: <7vbotstp4l.fsf@alter.siamese.dyndns.org> In-Reply-To: <201110072344.46556.jnareb@gmail.com> Jakub Narebski writes: > char *expand_user_path(const char *path) > [...] > if (username_len == 0) { > const char *home = getenv("HOME"); > if (!home) > goto return_null; > strbuf_add(&user_path, home, strlen(home)); > } else { > [...] Ahh, Ok. I was afraid getpwnam() codepath might interfere with it.