Commit Briefs

581fa623ef Thomas Adam

add more gotd regression tests for bad requests; patch by Mikhail

And rename req_wrong_commit.sh to request_bad.sh to reflect the broader scope of this test script.


86f8a176f0 Thomas Adam

add missing full-stop; patch by Josiah Frentsos


d6795e9fa6 Thomas Adam

gotwebd: add an RSS feed for the tags

ok tracey@


3191e25687 Thomas Adam

gotwebd: use DOCUMENT_URI rather than SCRIPT_NAME

the latter is empty when serving from a directory-like path prefix with an httpd.conf(5) as per gotwebd(8). ok tracey@



5f607f3ca4 Thomas Adam

tweak naming in new gotd regress test for consistency


79f1ca7850 Thomas Adam

add a gotd regression test which requests a non-existent commit

Patch by Mikhail


96b8c570c9 Thomas Adam

template: adjust my address


7ade8b27a9 Thomas Adam

gotwebd: templateify gotweb_render_commits

ok tracey@


2f4f073124 Thomas Adam

gotwebd: templateify gotweb_render_navs

ok tracey@


3d6d1fb0b8 Thomas Adam

gotwebd: drop index_page_str and page_str

gotwebd uses sprintf to update index_page_str and page_str if they were negative. While this specific usage is safe, let's drop it. Since the index_page_str and page_str fields are never read from, remove them. This saves two allocations per request too. ok tracey@


8ea2e76efa Thomas Adam

gotwebd: fix broken navigation in commits page since 8d02314

ok tracey@


e7e5fa49fc Thomas Adam

gotwebd: start using the template system

ok tracey@


6509b1818d Thomas Adam

import template

ok tracey@


414e37cb37 Thomas Adam

switch gotd from chroot(2) to unveil(2)

In the future, gotd will fork+exec new processes for each client connection. Using unveil instead of chroot avoids having to start such processes as root. The -portable version could use chroot(2) where no equivalent to unveil(2) exists. A future component which starts new processes will be isolated as a separate process, which could run as root in the -portable version. ok op@


2b3d32a184 Thomas Adam

add a gotd "listen" process which watches the unix socket

ok op@



d865e5fd74 Thomas Adam

add some TODO items for gotadmin


2bf2e64494 Thomas Adam

in gotd regress, use USER instead of USERNAME and check for sudo/doas users

Problem where USERNAME is not usually set on OpenBSD reported by Mikhail ok jamsek



911f5cd53e Thomas Adam

remove bogus abort() call from gotsh echo_error()



1eec6e4e1a Thomas Adam

fix gotd startup without any -v options


43a44bcef1 Thomas Adam

gotwebd: simplify bit of gotweb_process_request

ok tracey


c44c7d6e16 Thomas Adam

avoid copying reused deltas to delta cache file; copy from pack file instead

ok op@