Re: [PATCH 1/2] Add Git::config_path()
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Oct 7, 2011, 22:26 UTC
- Message-ID
- <7vbotstp4l.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <201110072344.46556.jnareb@gmail.com>
Jakub Narebski <jnareb@gmail.com> writes:
Show 9 quoted lines
> 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.