Commits
- Commit:
898c8f8fd003d730d0490c1a5a807e4c11e30f4b
- From:
- Omar Polo <op@omarpolo.com>
- 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:
9bd4acdbfe311b4b5045d0166f795ddbb5c27cbc
- From:
- Omar Polo <op@omarpolo.com>
- 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:
9d0feb8b5d4a20276efaf3f29df59ade82cd38aa
- From:
- Mark Jamsek <mark@jamsek.dev>
- 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:
092a9f9c956bc6b6f16e7f9897f5bca5e8a400fa
- From:
- Mark Jamsek <mark@jamsek.dev>
- 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:
a5feed5fb64e7964d25144156a6dd0700af84150
- From:
- Mikhail <mp39590@gmail.com>
- Via:
- Stefan Sperling <stsp@stsp.name>
- 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:
9430e858d160f9d3dbd02b218b5c0a95e266a199
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add missing full-stop; patch by Josiah Frentsos
- Commit:
1abb18e1777172a9f4149a0f50c4cecfd024f02c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: add an RSS feed for the tags
ok tracey@
- Commit:
d19d9fcec89a7d18ca8325b70f5edde7b4e6369a
- From:
- Omar Polo <op@omarpolo.com>
- 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:
be4f45b5bf0e1675373554243f024efb2d45a2e8
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
rename repo_req_wrong_commit.sh to req_wrong_commit.sh for consistency
- Commit:
6eb6bfed344145baeb3edf2fb884be0852bf857f
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
tweak naming in new gotd regress test for consistency
- Commit:
44ff0a4492e37763f0d19d4eeb2157221122cb1b
- From:
- Mikhail <mp39590@gmail.com>
- Via:
- Stefan Sperling <stsp@stsp.name>
- Date:
add a gotd regression test which requests a non-existent commit
Patch by Mikhail
- Commit:
b2b1792329f5adf1e755614e710d49388845293e
- From:
- Omar Polo <op@omarpolo.com>
- Date:
template: adjust my address
- Commit:
156a11447a870d2128d6ddce97013fca0cfd4e6a
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: templateify gotweb_render_commits
ok tracey@
- Commit:
b4c0bd7275f121f6250964ddfdf8db160ad486df
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: templateify gotweb_render_navs
ok tracey@
- Commit:
03f6a843c825ee4566446557cfa33bd1ebb1827b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
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@
- Commit:
6169d054065c0cf8901f97798d42785fc28819cf
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: fix broken navigation in commits page since 8d02314
ok tracey@
- Commit:
ed619ca07e51b9c984c8404ca2b1153efdb14d1e
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: start using the template system
ok tracey@
- Commit:
2c02675e51b8f7413665e81e1e2f3bf77ee9acb7
- From:
- Omar Polo <op@omarpolo.com>
- Date:
import template
ok tracey@
- Commit:
eec68231a79adb345b1a6a3194e5ddb353570356
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
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@
- Commit:
d93ecf7dc6dd75bc506128cc5666c1b76761e0a0
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add a gotd "listen" process which watches the unix socket
ok op@
- Commit:
b546f5e4a2345f89a875526edc57cf729564decf
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
functionality proposed in TODO as 'gotamin repack' already exists as 'pack -a'
- Commit:
44ff20fcdbb666cac99b55f4da39f8db2d08078d
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add some TODO items for gotadmin
- Commit:
b1a9f90ef84695ba812232cf18f1d358fc27c96e
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
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
- Commit:
30eb1ad6b8cdffd307215e60396bdcd58e7ccf17
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix spurious gotd regress failures caused by fixing gotsh echo_error()
- Commit:
d10629e6628f13c08f5b6013d0f1b68630acc383
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove bogus abort() call from gotsh echo_error()