-rw-r--r-- | cgit.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -44,2 +44,5 @@ static void cgit_fill_cache(struct cacheitem *item) { + static char buf[PATH_MAX]; + + getcwd(buf, sizeof(buf)); htmlfd = item->fd; @@ -50,2 +53,3 @@ static void cgit_fill_cache(struct cacheitem *item) cgit_print_repolist(item); + chdir(buf); } |