summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-04-05The global variable Startup is not used anymore and can be deleted.Alexander Bluhm
The functionality has moved into log_setdebug(). OK millert@
2017-04-05As we did not have nice log functions before, ttymsg() had to returnAlexander Bluhm
the error string. Log the message when the error happens and make the function void. OK millert@
2017-04-05The function logmsg() was used to generate local messages and toAlexander Bluhm
process incoming messages. Split this functionality into log_info() and logline(). Sort the parameters like they appear in the syslog line. OK millert@
2017-04-05Replace logerror() functions with generic log_warn() from log.c.Alexander Bluhm
Make messages a bit more consistent. Note that the new function supports format strings. Replace some log_debug() with log_warn(). OK millert@
2017-04-05Shuffle sendhup() into dispatch.c, the only place it is used.Kenneth R Westerback
2017-04-05Not all devices support mmap, document EINVAL in this case too.Todd C. Miller
OK deraadt@
2017-04-05Clamp size to length if snprintf ever indicates overflowTheo de Raadt
w/ millert
2017-04-05Replace all combinations of logerror() and die() with log.c fatal().Alexander Bluhm
Internally syslogd's fatal() calls die() to do cleanup if necessary. Also replace all err(3) after log_init() with fatal(). OK millert@
2017-04-05Unify variables used for recvmsg/sendmsgJeremie Courreges-Anglas
ok millert@ deraadt@
2017-04-05sendmsg returns a signed value, fix error checkJeremie Courreges-Anglas
ok millert@ deraadt@
2017-04-05We can enable many -W compiler warnings now.Reyk Floeter
OK rzalamena@
2017-04-05Rework the packet.c code for decoding and assembling DHCP messages.Reyk Floeter
This code suffered from many years of incremental improvements, fix it to: - verify available buffer space in all cases and don't just trust the caller - have an API where you always pass the full buffer length and absolute offset - use consistent types for lengths and buffer offsets (int vs. size_t, ssize_t) - don't just ignore errors, return and fail when something is wrong OK rzalamena@
2017-04-05Don't rely on asprintf setting pointer to NULL on failure.Jeremie Courreges-Anglas
ok millert@ deraadt@ tom@
2017-04-05When building counter memory in preparation to copy to userland, alwaysTheo de Raadt
zero the buffers first. All the current objects appear to be safe, however future changes might introduce structure pads. Discussed with guenther, ok bluhm
2017-04-05Add Home and End for copy mode.Nicholas Marriott
2017-04-05For a non-interactive attempt to pkg_delete a firmware package, print aStuart Henderson
message advising use of "fw_update -d" rather than saying "ok" and doing nothing. (pkg_delete intentionally makes it hard to uninstall firmware to prevent surprises when cleaning a machine). aja and I were surprised by the "ok" leaving the fw package installed. suggestion from espie to mention fw_update -d in the message.
2017-04-05Replace logdebug() with generic log_debug() from log.c. ImplementAlexander Bluhm
log_debugadd() to construct debug message incrementally. OK deraadt@
2017-04-05Try again to resolve problems with mistaking sessions for windows: nowNicholas Marriott
do not look up windows as sessions (and panes as windows) when they are qualified with a ':' or a '.'. So 'foo' as a window target will look for windows and sessions called 'foo', but ':foo' will only look for windows, and 'foo:' only for sessions. This means the common case of using an unadorned session as a window target (send -tfoo) should continue to work, but an explicit window will not get confused with a session (send -t:foo).
2017-04-05Give each client a name. This defaults to the tty name as before butNicholas Marriott
falls back to an alternative if the tty name is not available. This is clearer than overloading the client ttyname member and allows us to remove the path stored in the tty struct, it should always be the same as the client.
2017-04-05cfg_file can be static.Nicholas Marriott
2017-04-05Change tty_repeat_space to write large sets of spaces together insteadNicholas Marriott
of writing them individually.
2017-04-05various improvements, from klemens nanni;Jason McIntyre
i've omitted hunk 3 of his diff, as what's there now is correct; ok mikeb
2017-04-05- -Z before -z in options listJason McIntyre
- add -Z to help and usage()
2017-04-05an annoying whitespace glitchTheo de Raadt
2017-04-05timeval has trailing padding on powerpc and m88k, so memset it beforePhilip Guenther
copyout to avoid leaking kernel stack ok deraadt@
2017-04-05Here at OpenBSD we change ABIs at the fling of a hat. Just in case aTheo de Raadt
future disk info sysctl has pads in the structures, use M_ZERO when allocating the storage to avoid leaking kernel memory.
2017-04-05clear structure on the stack before copying out for sysctl. At presentTheo de Raadt
it has no pads, but a future ABI change could add something and leak kernel memory.
2017-04-05syncTheo de Raadt
2017-04-05Allow nc to save the peer certificate and chain in a pem file specifiedBob Beck
with -Z ok jsing@
2017-04-05Add tls_peer_cert_chain_pem - To retreive the peer certificate and chainBob Beck
as PEM format. This allows for it to be used or examined with tools external to libtls bump minor ok jsing@
2017-04-05Internal changes to allow for relayd engine privsep. sends the hash of theBob Beck
public key as an identifier to RSA, and adds an function for relayd to use to disable private key checking when doing engine privsep. ok jsing@
2017-04-05Do not print a warning if closing the control socket fails. ItAlexander Bluhm
cannot happen and there is nothing that could be done about it. OK deraadt@
2017-04-04add a config test flag to sasyncdJonathan Gray
ok reyk@ deraadt@ jmc@
2017-04-04Also remove non syspatch hidden files/dirs.Antoine Jacoutot
2017-04-04Do not purge the CONFIG_SERVERS config in the parent. The ticket code usesClaudio Jeker
the servers config for its rekeying handling. Without this no rekeying happens and httpd stops working. Learned the hard way by me and beck@ OK reyk@
2017-04-04struct vfsconf is tightly packed, but let's M_ZERO it in case that everTheo de Raadt
changes to avoid exposing userland memory.
2017-04-04Ensure, that during upgrades, the default for the "Location of sets"Robert Peichaer
question is set to http if /etc/installurl exists and override the install method information from the cgi server. 'makes sense' deraadt@
2017-04-04The unsigned result cannot be -1, turn it into a signed variable.Reyk Floeter
OK rzalamena@
2017-04-04constify pc_remote and pc_circuitReyk Floeter
OK rzalamena@
2017-04-04Send a RTM_PROPOSAL to clear out other dhclient instances on startup.Kenneth R Westerback
Replaces forcing interface link state down and up to generate RTM_IFINFO messages.
2017-04-04document comments in table files; help/ok gillesJason McIntyre
2017-04-04tweak previous;Jason McIntyre
2017-04-04Add missing newline in fprintf error message.Reyk Floeter
OK jsg@
2017-04-04Treat SSID's like the 0 to 32 bytes of uint8_t data that they reallyKenneth R Westerback
are. Track and use the actual lengths and use memcpy()/memcmp() instead of strcmp()/strdup().
2017-04-04Cleanup the code further. Get rid of the remaining C++-style comments,Mark Kettenis
remove some debug printfs, get rid of STATIC and __inline defines and remove a bit more unused code. ok drahn@, visa@
2017-04-04Issue memory barrier before lock release, not after. This ensuresVisa Hankala
the release write becomes globally visible only after any writes of the critical section are globally visible. In practice, the reordering has not happened because the kernel runs in the total store order mode. Tested by and OK kettenis@
2017-04-04add a free() size near microcode loadingTheo de Raadt
2017-04-04Rewrite tohexstr() to use the common idiom of converting a byteTodd C. Miller
string to hex nybble by nybble. This avoids using the return value of snprintf() unchecked. OK deraadt@
2017-04-04Add 8265 and 3168 support. Both cards need new firmware files which currentlyClaudio Jeker
need to be installed by hand until the iwm-firmware package has been updated. This includes handling (by ignoring) of IWM_UCODE_TLV_FW_MEM_SEG and IWM_DEBUG_LOG_MSG firmware commands. Mostly stolen from dragonflybsd. With this in the X270 has working ethernet and wifi. Commit! deraadt@
2017-04-04disallow creation (of empty files) in read-only mode; reported byDamien Miller
Michal Zalewski, feedback & ok deraadt@