when done reading from the client, we defensively close stdin, to
prevent potential bugs being exploitable to malicious input
toybox opens /dev/null if stdin does not exist, which crashes in a
chrooted evironment. piping in an empty string more or less
accomplishes the same thing as closing stdin would
i really do not know why toybox found this necessary.
# if `configuration/status-code/table/${hostname}/${STATUS_CODE} exists, `cat(1)` that
# otherwise, fall back on a very generic error message
-fdclose 0
+heredoc 0 ""
foreground {
if -t { s6-test \${#} = 3 }
log.execline "fatal: ??"${1}"??: "${3}
importas -i hostname http_header_parse_Host
# we don’t need to read anything more from the client
- fdclose 0
+ heredoc 0 ""
foreground {
log.execline