Unidiff1 files changed, 1 insertions, 1 deletions
|
diff --git a/cgit.c b/cgit.c index e1d2216..96900bb 100644 --- a/ cgit.c+++ b/ cgit.c |
|
@@ -607,13 +607,13 @@ static void process_cached_repolist(const char *path) |
607 | time_t age; |
607 | time_t age; |
608 | unsigned long hash; |
608 | unsigned long hash; |
609 | |
609 | |
610 | hash = hash_str(path); |
610 | hash = hash_str(path); |
611 | if (ctx.cfg.project_list) |
611 | if (ctx.cfg.project_list) |
612 | hash += hash_str(ctx.cfg.project_list); |
612 | hash += hash_str(ctx.cfg.project_list); |
613 | cached_rc = xstrdup(fmt("%s/rc-%8x", ctx.cfg.cache_root, hash)); |
613 | cached_rc = xstrdup(fmt("%s/rc-%8lx", ctx.cfg.cache_root, hash)); |
614 | |
614 | |
615 | if (stat(cached_rc, &st)) { |
615 | if (stat(cached_rc, &st)) { |
616 | /* Nothing is cached, we need to scan without forking. And |
616 | /* Nothing is cached, we need to scan without forking. And |
617 | * if we fail to generate a cached repolist, we need to |
617 | * if we fail to generate a cached repolist, we need to |
618 | * invoke scan_tree manually. |
618 | * invoke scan_tree manually. |
619 | */ |
619 | */ |
|