about summary refs log tree commit diff
path: root/cgit.c (follow)
Commit message (Expand)AuthorAge
* filter: avoid integer overflow in authenticate_postJason A. Donenfeld2015-11-24
* cgit.c: remove useless null checkJohn Keeping2015-10-09
* cmd: no need for pre function hook nowJason A. Donenfeld2015-08-14
* cmd: remove "want_layout" fieldJohn Keeping2015-08-14
* cgit: use cgit_print_error_page() where appropriateJohn Keeping2015-08-14
* log: allow users to follow a fileJohn Keeping2015-08-12
* about: always ensure page has a trailing slashJason A. Donenfeld2015-08-12
* git: update to v2.5.0Christian Hesse2015-08-12
* Fix processing of repo.hide and repo.ignoreDaniel Reichelt2015-08-12
* cgit: remember to set up env vars before empty clone pathJason A. Donenfeld2015-03-09
* Avoid non-ANSI function declarationsJohn Keeping2015-03-09
* cgit: show clone URLs for empty repoJason A. Donenfeld2015-03-05
* git: update for v2.3.0Christian Hesse2015-02-08
* Add repo.hide and repo.ignoreLukas Fleischer2015-01-29
* repolist: add owner-filterChris Burroughs2014-12-23
* git: update to v2.2.1Christian Hesse2014-12-23
* Change "ss" diff flag to an enumJohn Keeping2014-12-13
* Always check if README exists in choose_readme()Lukas Fleischer2014-08-07
* git: update for git 2.0Christian Hesse2014-06-28
* Add a cache-snapshot-ttl configuration variableLukas Fleischer2014-02-20
* cgit: add --version argument for printing infoJason A. Donenfeld2014-01-20
* cgit.c: free tmp variableJason A. Donenfeld2014-01-17
* Switch to exclusively using global ctxLukas Fleischer2014-01-17
* auth: have cgit calculate login addressJason A. Donenfeld2014-01-16
* authentication: use hidden form instead of refererJason A. Donenfeld2014-01-16
* auth: add basic authentication filter frameworkJason A. Donenfeld2014-01-16
* filter: add support for email filterJason A. Donenfeld2014-01-14
* filter: basic write hooking infrastructureJason A. Donenfeld2014-01-14
* filter: allow for cleanup hook for filter typesJason A. Donenfeld2014-01-14
* filter: add fprintf_filter functionJohn Keeping2014-01-14
* filter: split filter functions into their own fileJason A. Donenfeld2014-01-10
* cgit.c: Fix comment on bit mask hackLukas Fleischer2014-01-10
* cgit.c: Use "else" for mutually exclusive branchesLukas Fleischer2014-01-10
* Replace most uses of strncmp() with prefixcmp()Lukas Fleischer2014-01-10
* Update copyright informationLukas Fleischer2014-01-08
* cache: id means static, even if head is specified tooJason A. Donenfeld2013-08-12
* cache: document negative ttls and add about ttlJason A. Donenfeld2013-08-12
* use favicon by defaultChristian Hesse2013-08-12
* readme: use string_list instead of space deliminationsJason A. Donenfeld2013-05-26
* readme: Accept multiple candidates and test them.Jason A. Donenfeld2013-05-25
* ui-summary: Pass filename to about-filterJason A. Donenfeld2013-05-25
* cgit.c: Do not reset HOME after unsetting it.Jason A. Donenfeld2013-05-25
* cgit.c: sync repo config printing with struct cgit_repoJason A. Donenfeld2013-05-25
* Add branch-sort and repo.branch-sort options.Jason A. Donenfeld2013-04-10
* cgit.c: Do not restore unset environment variablesLukas Fleischer2013-04-10
* Do not load user or system gitconfig and gitattributesJason A. Donenfeld2013-04-08
* use struct strbuf instead of static buffersJohn Keeping2013-04-08
* Convert cgit_print_error to a variadic functionJohn Keeping2013-04-08
* Fix out-of-bounds memory accesses with virtual_root=""John Keeping2013-04-08
* Do not unnecessarily strdup() environment variablesLukas Fleischer2013-04-08
+0100'>2006-12-12cache_lock: do xstrdup/free on lockfileLars Hjemli Since fmt() uses 8 alternating static buffers, and cache_lock might call cache_create_dirs() multiple times, which in turn might call fmt() twice, after four iterations lockfile would be overwritten by a cachedirectory path. In worst case, this could cause the cachedirectory to be unlinked and replaced by a cachefile. Fix: use xstrdup() on the result from fmt() before assigning to lockfile, and call free(lockfile) before exit. Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-11Don't truncate valid cachefilesLars Hjemli An embarrassing thinko in cgit_check_cache() would truncate valid cachefiles in the following situation: 1) process A notices a missing/expired cachefile 2) process B gets scheduled, locks, fills and unlocks the cachefile 3) process A gets scheduled, locks the cachefile, notices that the cachefile now exist/is not expired anymore, and continues to overwrite it with an empty lockfile. Thanks to Linus for noticing (again). Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-11Move global variables + callback functions into shared.cLars Hjemli Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-11Move functions for generic object output into ui-view.cLars Hjemli Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-11Move log-functions into ui-log.cLars Hjemli Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-11Move repo summary functions into ui-summary.cLars Hjemli Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-11Move functions for repolist output into ui-repolist.cLars Hjemli Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-11Move common output-functions into ui-shared.cLars Hjemli While at it, replace the cgit_[lib_]error constants with a proper function Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-11Rename config.c to parsing.c + move cgit_parse_query from cgit.c to parsing.cLars Hjemli Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-11Avoid infinite loops in caching layerLars Hjemli Add a global variable, cgit_max_lock_attemps, to avoid the possibility of infinite loops when failing to acquire a lockfile. This could happen on broken setups or under crazy server load. Incidentally, this also fixes a lurking bug in cache_lock() where an uninitialized returnvalue was used. Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-11Let 'make install' clear all cachefilesLars Hjemli Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-11Fix cache algorithm loopholeLars Hjemli This closes the door for unneccessary calls to cgit_fill_cache(). Noticed by Linus. Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-10Add version identifier in generated filesLars Hjemli Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-10Add license file and copyright noticesLars Hjemli Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-10Add caching infrastructureLars Hjemli