{"thread":{"id":"4583","subject":"[PATCH] git_config: access() returns 0 on success, not > 0","startedAt":"2006-06-20T07:51:09Z","lastAt":"2006-06-20T07:51:09Z","messageCount":1,"participants":["Johannes Schindelin"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"22114","messageId":"Pine.LNX.4.63.0606200950460.26329@wbgn013.biozentrum.uni-wuerzburg.de","threadId":"4583","inReplyTo":null,"subject":"[PATCH] git_config: access() returns 0 on success, not > 0","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2006-06-20T07:51:09Z","receivedAt":"2006-06-20T07:51:09Z","isPatch":true,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"\nAnother late-night bug. Sorry again.\n\nSigned-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>\n---\n config.c |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/config.c b/config.c\nindex d064f42..3e077d4 100644\n--- a/config.c\n+++ b/config.c\n@@ -335,7 +335,7 @@ int git_config(config_fn_t fn)\n \n \tif (home) {\n \t\tchar *user_config = strdup(mkpath(\"%s/.gitconfig\", home));\n-\t\tif (access(user_config, R_OK) > 0)\n+\t\tif (!access(user_config, R_OK))\n \t\t\tret = git_config_from_file(fn, user_config);\n \t\tfree(user_config);\n \t}\n-- \n1.4.0.g59268-dirty\n"}]}