Commits
- Commit:
5abbba2d467df0d641100b74fbe24428fbb1c2c6
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: move log_init() call a bit earlier
Otherwise the log_warnx() call in the -D case logs to syslog.
- Commit:
0c64c2f8032e7c3de8b5b3ca5c5bd9047b89b17c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: clean up sockets_create_socket a bit
Instead of hardcoding the flags, keep ai_{family,socktype,protocol}
from the getaddrinfo() call and apply them here.
ok stsp@
- Commit:
cdfd248aa718819d40d0bf972b7efbb2eabd31c9
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotadmin: get rid of got_sockaddr.[ch] usage
It was added due to gotwebd weird structure sockaddr_storage handling.
Instead, save the size reported by getaddrinfo() and not reach into
the struct sockaddr_storage at all (except for extracting the port
number for diagnostics purposes.)
sockets_conf_new_socket_fcgi() gets an hardcoded ipproto to zero
(which is the only value it can get in practice, and keeps for the
moment the hardcoded SOCK_STREAM. It'll be cleaned in a follow-up.
ok stsp@
- Commit:
b8b20b3c52fa4f90a1ac5b20e7d8a24fae8d9e27
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: improve error message in get_addrs(); noticed by stsp@
- Commit:
89cfaaa7b56bbfa063ed42929ced2ab244443f62
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: make get_addrs() take the service name directly
This changes how we handle the port number: bubbles up the local
portstr added in previous commit and lets getaddrinfo() deals with
port numbers and services name. getservice() can be gc.
While here add the missing free() in parse.y.
ok stsp@
- Commit:
dfd77022fc31b33c39f1e800698a2d43644666fa
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix typo in previous
- Commit:
c5e111b920bf4b059fe47aa7dcee5630ad5c3363
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: merge host() and get_addrs(); use * instead of "" for any addr
ok plus tweaks stsp@
- Commit:
af09dd3fec1090c7273f680a0ae5bf50d2183390
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: disable listening on interfaces
ok stsp@
- Commit:
63c6b10f7b78b600251e3eb2622e0db7db0f8aa0
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
reduce gotwebd pledges to the minimum currently required; with op@
- Commit:
6fe3b58aaa9bdb466eabad75eb65bce86d7155af
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix gotwebd unveil permissions
The main process doesn't need write access anywhere and /tmp is not needed.
The sockets process didn't use unveil at all so far, but is happy with
just "x" for libexec helpers and "r" for each server's repository path.
Input from op@
Tested by myself and Kyle Ackerman who also reviewed the diffs.
Prompted by questions from mlarkin@
ok mlarkin@, op@
- Commit:
b1c090542f4ecaf993fc81468338839febcb8e37
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
allow setting variables in gotd.conf; code from gotwebd/parse.y
ok op@
- Commit:
a3dc2f5de198c4a5c70d7b2be4db9179531c4456
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: remove dead ipproto handling in host() and host_if()
ipproto is always -1, so delete the dead code. ok stsp@
- Commit:
91f3651eacab82fa74052cacf1b8b5fdf9b05267
- From:
- Omar Polo <op@omarpolo.com>
- Date:
use ibuf_fd_set() instead of reaching into the ibuf struct
discussed with tb@
- Commit:
ac4f092c7c8e090ee733c90b8b0f0274872c8662
- From:
- Omar Polo <op@omarpolo.com>
- Date:
don't redundantly set wbuf->fd to -1
ibuf_dynamic() (called by imsg_create()) already initializes fd to -1.
- Commit:
2161bc24065b9b58f71cbffbb8b65a9546e134f2
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix some fd leaks in error paths and avoid some double close
Sweep done after a few were spotted by tb@, thanks!
ok stsp@
- Commit:
e2766b2cfe846879e3e4de660bc7e7af350a384b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd TODO: category grouping support
- Commit:
14eb0fefd04d63b1a8d626e72c953a811a403f7d
- From:
- "Lorenz (xha)" <me@xha.li>
- Via:
- Stefan Sperling <stsp@stsp.name>
- Date:
simplify usage of the 'mesg' histedit script command
The 'mesg' script command now requires a commit ID as its argument,
rather than being tied to a preceding 'pick' or 'edit' command.
The old model was too confusing for new users, in particular for people
used to Git's rebase -i squash semantics.
The 'mesg' command is now semantically equivalent to the 'pick' command
and additionally opens the log message in an editor.
The new syntax is simpler to use but also requires that we drop support
for one-line log messages inside the histedit script, with a commit ID
taking its place in the argument space. We don't believe this feature was
used much, and that a simplified usage model is more beneficial overall.
Patch by Lorenz (xha)
ok jamsek
- Commit:
ad4e3a354f1e08e1a53e4864a5f004659d17acc6
- From:
- Omar Polo <op@omarpolo.com>
- Date:
style
- Commit:
41208069f572694ef8847dbe9d9a47337f7083bd
- From:
- Omar Polo <op@omarpolo.com>
- Date:
patch: handle NULs in lines
got patch assumes that lines can be encoded as strings, so embedded
NUL bytes truncates what got sees of the line.
While here, add some minor semplification to the logic by splitting
the type out of the line string and change linecmp into lines_eq
(name suggested by stsp@)
ok stsp@
- Commit:
23b95dce1cd50b4b3fbd7402c34b6eb155e3dbc8
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
i can't count
- Commit:
87bd0c08f248a23b64471e77d2b081d5b04b4fa5
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix gotadmin cleanup -a documentation: it also removes pack files
ok stsp@
- Commit:
39ccd01728db4a4cd45f03fdb4e8bfe7a8c16b0a
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make 'tog diff' release the work tree lock earlier
Avoids 'work tree is already locked' errors from got commands while
the 'tog diff' command remains running.
- Commit:
b610c677694f4118404d76458ed7f75c0feb4bab
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
slightly reword 'got merge' documentation to hopefully be more clear
- Commit:
7781b9910fcbba579c2e112bbfdea73a64ccad70
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: render all the datetimes in a time tag
fixes an unused variable that should have been dropped in previous
commit too.
ok stsp@
- Commit:
bf26a633636ba2058b6bb747b0dd4ab17cb185a8
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: inline the only use of TM_RFC822