Unidiff1 files changed, 2 insertions, 2 deletions
|
diff --git a/cache.c b/cache.c index 372e38d..b162952 100644 --- a/ cache.c+++ b/ cache.c |
|
@@ -52,20 +52,20 @@ int cache_create_dirs() |
52 | return 0; |
52 | return 0; |
53 | |
53 | |
54 | path = fmt("%s/%s", cgit_cache_root, |
54 | path = fmt("%s/%s", cgit_cache_root, |
55 | cache_safe_filename(cgit_repo->url)); |
55 | cache_safe_filename(cgit_repo->url)); |
56 | |
56 | |
57 | if (mkdir(path, S_IRWXU) && errno!=EEXIST) |
57 | if (mkdir(path, S_IRWXU) && errno!=EEXIST) |
58 | return 0; |
58 | return 0; |
59 | |
59 | |
60 | if (cgit_query_page) { |
60 | if (ctx.qry.page) { |
61 | path = fmt("%s/%s/%s", cgit_cache_root, |
61 | path = fmt("%s/%s/%s", cgit_cache_root, |
62 | cache_safe_filename(cgit_repo->url), |
62 | cache_safe_filename(cgit_repo->url), |
63 | cgit_query_page); |
63 | ctx.qry.page); |
64 | if (mkdir(path, S_IRWXU) && errno!=EEXIST) |
64 | if (mkdir(path, S_IRWXU) && errno!=EEXIST) |
65 | return 0; |
65 | return 0; |
66 | } |
66 | } |
67 | return 1; |
67 | return 1; |
68 | } |
68 | } |
69 | |
69 | |
70 | int cache_refill_overdue(const char *lockfile) |
70 | int cache_refill_overdue(const char *lockfile) |
71 | { |
71 | { |
|