AgeCommit message (Collapse)AuthorLines
Refuse a config directory before reading itBryce Kwon-1/+7
Git's build swaps in an fopen that refuses a directory, but only where it defines FREAD_READS_DIRECTORIES, and not every system's build does. There a directory opened, and only a failed read(2) reported it. POSIX leaves that failure to the system, and one that read the raw entries would have parsed them as settings.
Report a word where cgitrc expects a numberBryce Kwon-2/+42
atoi reads "yes" or "true" as 0, so repo.hide=yes, or cgit.hide true in a scanned repository's git config, silently did nothing. The values keep that meaning, since honouring them now would hide repositories on upgrade, but each one is logged with its file and line.
Report a cgitrc or include that cannot be readBryce Kwon-3/+8
A missing or unreadable cgitrc left only "No repositories found" and an empty log, the commonest first mistake with no trace of its cause. A scanned repository's own cgitrc stays quiet, since most have none.
Return nothing from two calls nobody checksBryce Kwon-4/+3
Run a config comment to the end of its lineBryce Kwon-1/+1
skip_line stopped at a NUL as well as at a newline, so the rest of the comment after one was read as a setting.
Harden the request path, scan and error recoveryBryce Kwon-1/+1
Trim the comments and dead code across the treeBryce Kwon-11/+7
Restyle the sources and fix the audit's findingsBryce Kwon-0/+113