Commits
- Commit:
a42b418b1416531932c59f608ef8cc9cfb442cc9
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gotd.conf: treat empty repository names as a syntax error
- Commit:
bb45bea88220ce7474bfe455a681f00406ba0e6f
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gotd.conf: treat repositories without any parameters as a syntax error
Because gotd expects some parameters to be present they must not be
optional at the syntax level.
- Commit:
ef504a85782c5cced25d81b2b5ae77a457ccc46a
- From:
- Paul W. Rankin <hello@paulwrankin.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gotwebd: remove got_prefix in gotwebd.conf(5) example
- Commit:
f0b4ad1586ec3cb0c700f6c3604a06b89b608b68
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
fmt
- Commit:
fd7d06594609a02dbba4137b94210b2f4d22b737
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
adjust the first gotwebd.8 httpd.conf example to work out of the box
gotwebd defaults to listening on a unix socket, and this man page
aims to provide an appropriate configuration snippet in EXAMPLES.
suggested by Paul Wrankin via gameoftrees IRC
- Commit:
2b790b760a2d019618ecad903d056420d6a510bc
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
fix previous; name must be initialized
otherwise if binaryfilename fails to match the line, `name' may be left
pointing to free'd memory.
- Commit:
650a3405fbd209dde33ac82b91ac6bceb15104e4
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
got patch: handle the removal of binary files
Diffs that remove binary files don't have hunks so got patch would skip
over them, treating that part of the diff as "noise".
Different programs outputs a slightly different diff for this kind of
patches, but the "Binary files ... and /dev/null differ" is usually
shown, so try to match it.
The adedd regress test covers got diff, git diff, and OpenBSD'
/usr/bin/diff. CVS diffs will currently fail because the guessed file
name will be wrong. CVS prints the file name in the Index and RCS lines
which got patch currently ignores, and shows an useless path in the
"Binary files /tmp/cvs... and /dev/null differ" line.
Discussed with and ok stsp@
- Commit:
bbf94fd6ae7e0a158d5ad25a7e25c6f422136fcb
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gotwebd: print commit message too in gotweb_render_commits
Regression from 156a1144 spotted by stsp, thanks!
- Commit:
2e4e6f2cae8cc1498e5748408ceadc03b3e1ddff
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gotwebd is a Web daemon
- Commit:
85c360aaa1efe49063956a1fdfd7e46d8e5a92b3
- From:
- Tracey Emery <tracey@traceyemery.net>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
farewell, gotweb. you served us well. rm gotweb, ok stsp@
- Commit:
ba63ab46fb6570dd4cfacb1643a3a8fe5c68b835
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
enforce a per-uid connection limit in the gotd listen process
For now the limit is set at compile-time. It will become configurable
via gotd.conf soon.
ok op@
- Commit:
00475f9a1ab9244b6e22272ead0a2591ded61b68
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gotwebd: drop redundant NULL check
qs is guaranteed to be not NULL reached that point.
- 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