From: Johannes Schindelin Date: Tue, 20 Jun 2006 07:51:09 +0000 (+0200) Subject: git_config: access() returns 0 on success, not > 0 X-Git-Tag: v1.4.1-rc1~15^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e33d0611c0dd438ed9c1960518540c707201707a;p=git.git git_config: access() returns 0 on success, not > 0 Another late-night bug. Sorry again. Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano --- diff --git a/config.c b/config.c index d064f429c..3e077d4c6 100644 --- a/config.c +++ b/config.c @@ -335,7 +335,7 @@ int git_config(config_fn_t fn) if (home) { char *user_config = strdup(mkpath("%s/.gitconfig", home)); - if (access(user_config, R_OK) > 0) + if (!access(user_config, R_OK)) ret = git_config_from_file(fn, user_config); free(user_config); }