# [PATCH] git_config: access() returns 0 on success, not > 0

1 messages from 2006-06-20 to 2006-06-20. Participants: Johannes Schindelin.
Thread: https://gitlist.dev/t/4583

## Johannes Schindelin, 2006-06-20 07:51

Subject: [PATCH] git_config: access() returns 0 on success, not > 0
Message-ID: <Pine.LNX.4.63.0606200950460.26329@wbgn013.biozentrum.uni-wuerzburg.de>
URL: https://gitlist.dev/e/Pine.LNX.4.63.0606200950460.26329%40wbgn013.biozentrum.uni-wuerzburg.de

```

Another late-night bug. Sorry again.

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
---
 config.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/config.c b/config.c
index d064f42..3e077d4 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);
 	}
-- 
1.4.0.g59268-dirty

```
