summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2006-06-20 07:51:09 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-06-20 08:21:53 (GMT)
commite33d0611c0dd438ed9c1960518540c707201707a (patch)
tree1b4634ca739fb0e44e1097fa6e4aeadd8cd6e283
parent92a28be0ce12a50e0e53268be99130c2ef504c7e (diff)
downloadgit-e33d0611c0dd438ed9c1960518540c707201707a.zip
git-e33d0611c0dd438ed9c1960518540c707201707a.tar.gz
git-e33d0611c0dd438ed9c1960518540c707201707a.tar.bz2
git_config: access() returns 0 on success, not > 0
Another late-night bug. Sorry again. Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
-rw-r--r--config.c2
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);
}