From e33d0611c0dd438ed9c1960518540c707201707a Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Tue, 20 Jun 2006 09:51:09 +0200 Subject: 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 --- config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config.c') diff --git a/config.c b/config.c index d064f429cb..3e077d4c6c 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); } -- cgit v1.2.3