Commits
- Commit:
ee7c14200a271dc3c8ce07e7d2f5102820f67422
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gotwebd: remove useless comment
should be placed further down, after BLOB and RSS are handled, but the
call to `gotweb_render_header' is successfully clear on its own.
- Commit:
16373356309bbffea15297b273af79c2c62d9c8b
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
fmt
- Commit:
56409302ec70f87cebbea0155915ea2862327e86
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gotd listen process forgot to initialize its client table siphash key
- Commit:
9148c8a75e2eb133ca0919805a3fb6d0c415b045
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
convert gotd repo_read.c and repo_write.c to single-client
Because these processes are now started on demand per client connection
there is no need to keep track of multiple clients anymore. Also, these
processes can now exit when a disconnect event is received.
ok op, jamsek
- Commit:
cb11302ca643bbb042a84f1e4784202c0f9a1252
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: gotwebd: use template
This updates -portable's gotwebd instance to make use of the new
templating engine.
- Commit:
46ecc01f5bf28403be0e41b8438bfbec24faadef
- From:
- Mark Jamsek <mark@jamsek.dev>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gotd: nix trailing whitespace and indentation fix
ok op@, stsp@
- Commit:
b942ab080a771fcaa36e5806fe6ee2ad2a311c8a
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
remove filesystem access via bind(2) from gotd auth process
op@ pointed out a problem in my initial patch where I forgot
to call unveil(2) with a path before unveil(NULL, NULL).
ok op, jamsek
- Commit:
0bcde4c8df9f0fc2d418667c5f91831a88a6a425
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
move "unix" pledge promise from gotd parent to auth process
The listen process now communicates the client UID/GID to the parent,
and the auth process verifies this on behalf of the parent.
This allows us to remove the "unix" pledge promise from the parent,
removing parent access to syscalls such as listen() and accept() in
the AF_UNIX domain.
ok tracey@ op@
- Commit:
95ef3f8a77725d7ef0d173b0c0da5e8089ba0645
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
fix gotd authentication timeout
The authentication timeout was accidentally overriden by the request timeout.
Fix this and set both timeouts in the same place for clarity.
ok op@
- Commit:
c669c4892eacfb82355f0fa66bcafe84a600040e
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
run gotd authentication in a separate child process
ok op@
- Commit:
85b37c721947934fb06881ad45bb72f3fed91da9
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
fork gotd repo_read/repo_write children on demand
ok op, jamsek
- Commit:
3e7c54e1399c45d211f67d16b6a5ea9310e774d3
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gotd: tweak error message if getpwnam fails
errno may not be set to something interesting so switch to fatalx, and
simplify the error message (knowing the failed function, which is also
wrong, doesn't buy much here.)
ok jamsek
- Commit:
45b9d1e910429084a1ced2cdd4ef73544fd593b8
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
tweaks to request_bad.sh; no functional change
in no specific order:
- define the "aaa..." string as variable to avoid long lines (same
for the 255 "A")
- drop the comment about the "OpenBSD cmp(1) offset extension": it's
quite popular actually.
- consistently use "cmp foo.expected foo" instead of "cmp foo
foo.expected". It makes easier to copy-paste it if we want to
diff(1) the files.
- diff files when cmp(1) fails if feasible (i.e. when we're not
cmp(1) at offsets)
- use printf when the string to print contains "\n"
- add some missing blank lines between functions
- Commit:
d07291c6a134e3b3b58ac871c332d7b472008f5d
- From:
- Mark Jamsek <mark@jamsek.dev>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
tog: always echo input prompt to bottom left of screen
Irrespective of the active view, always echo to the bottom left of the parent
view.
ok op@
- Commit:
85fbc3608c5e4a2ca0657106c056a784ef712ffe
- From:
- Mark Jamsek <mark@jamsek.dev>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
tog: fix typo that breaks log search when in hsplit
Ironically, the typo "blocks" log search when in hsplit because we block input
on the wrong view! Pass the proper "v" view to nodelay() calls.
ok op@
- Commit:
581fa623effefdc175bc7a74bbb8d30692081705
- From:
- Mikhail <mp39590@gmail.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
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.
- Commit:
86f8a176f07f038b900de4be6e5b8fa6b0ae6221
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
add missing full-stop; patch by Josiah Frentsos
- Commit:
d6795e9fa6cc029fe5e47ccc827abe3a498a7e71
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gotwebd: add an RSS feed for the tags
ok tracey@
- Commit:
3191e25687ad12e5d81efb8827a7bddee0ba0465
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
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@
- Commit:
5227cf6d14da7d22ebc767a826ecb1d38f3bfc4e
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
rename repo_req_wrong_commit.sh to req_wrong_commit.sh for consistency
- Commit:
5f607f3ca40cf226e476099adbe8820fec9f8240
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
tweak naming in new gotd regress test for consistency
- Commit:
79f1ca7850bc6d41672a5cdaf89a58544e4934e8
- From:
- Mikhail <mp39590@gmail.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
add a gotd regression test which requests a non-existent commit
Patch by Mikhail
- Commit:
96b8c570c9c426e96f97698185dd011e2e39be0c
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
template: adjust my address
- Commit:
7ade8b27a9039824713dfc36189c6bc9470bbe0c
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gotwebd: templateify gotweb_render_commits
ok tracey@
- Commit:
2f4f0731243b48a022f336d0ce7765a27e0cc56e
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gotwebd: templateify gotweb_render_navs
ok tracey@