X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/5b94c96a83f19a0175a8e1699d71080965793cc2..47a81c77fdd017227632c4df9a0b7b135b8a738d:/cgit.c diff --git a/cgit.c b/cgit.c index 1d7a83f..3c11ff0 100644 --- a/cgit.c +++ b/cgit.c @@ -243,7 +243,9 @@ int main(int argc, const char **argv) cgit_repolist.count = 0; cgit_repolist.repos = NULL; - cgit_read_config("/etc/cgitrc", cgit_global_config_cb); + cgit_read_config(CGIT_CONFIG, cgit_global_config_cb); + if (getenv("SCRIPT_NAME")) + cgit_script_name = xstrdup(getenv("SCRIPT_NAME")); if (getenv("QUERY_STRING")) cgit_querystring = xstrdup(getenv("QUERY_STRING")); cgit_parse_args(argc, argv);