use strncmp instead of memcmp in complt()
cpos is not necessarely shorter than lh->l_name length, so we might end
up memcmp'ing out of bounds.
from Han Boetes (hboetes at gmail)
Load device tree for the Spacemit K3 Pico ITX board, which will be added
to the riscv64-spacemit-dtb firmware package at some point in the
future.
ok jsg@
usr.sbin/httpd: fix suffix range handling
Calculate suffix ranges before clamping end offsets so requests at least
as large as the file return the complete representation. Reject zero
length and malformed ranges, retain 64 bit sizes throughout range
handling, and add regression coverage for boundaries and overflow.
Based on indea of Andrew Kloet
OK: rsadowski@
httpd: remove redundant search and check return value
The server foreach-loop serves the same purpose as "serverconfig_byid"
did previously.
OK kirill@
httpd: do NOT send location fcgiparams twice
Only emit the params when the current receiver is the server child.
When sending a location-config from the parent, the FCGI params IMSG
was emitted once per receiver iteration and always targeted the server
child. With both the server and the logger process needing the server
config, the server child received IMSG_CFG_FCGI twice per location and
appended the same params on top of the existing list. The FastCGI backends
then saw every param duplicated.
Input Fabien Romano, OK kirill@