summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-04-30Convert to if_input(), tweak and ok dlg@Martin Pieuchot
2015-04-30Indroduce fd_getfile_mode() and use it were fd_getfile() is directlyMartin Pieuchot
followed by a mode check. This will simplify the ref/unref dance as soon as fd_getfile() will increment fp's reference counter. Idea from and ok guenther@, ok millert@
2015-04-30use adolf, not adolph, for hitler, to keep it consistent;Jason McIntyre
remove his suicide entry since it's already listed, more completely, in calendar.history; from craig skinner
2015-04-30No need to set `rcvif', if_input() does it for you!Martin Pieuchot
2015-04-30Convert moar drivers to if_input().Martin Pieuchot
ok dlg@
2015-04-30Error out if the PT_INTERP segment isn't NUL terminatedPhilip Guenther
ok deraadt@ millert@ miod@
2015-04-29If a block body gets broken, that's no good reason to extend theIngo Schwarze
scope of the end macro. Instead, only keep the tail scope open if the end macro macro calls an explicit macro and actually breaks that. This corrects syntax tree structure and fixes an assertion found by jsg@ with afl (test case 098/Apr27).
2015-04-29Replace the kludge for the \z escape sequence by an actualIngo Schwarze
implementation. As a side effect, minus ten lines of code. As another side effect, this also fixes the assertion failure that used to be triggered by "\z\o'ab'c" at the beginning of an output line, found by jsg@ with afl (test case 022/Apr27).
2015-04-29In most cases, IP fragments do not have an Ethernet padding. SoAlexander Bluhm
add a condition to save a useless call to m_adj() and have a paranoid length check in the other cases. OK henning@
2015-04-29some fine-tuning in SYNOPSIS, usage, and order of options, with jmcHenning Brauer
2015-04-29g/c unneeded second char * var, ok bennoHenning Brauer
2015-04-29Do not complain when directions fail.Nicholas Marriott
2015-04-29Add tmux and tmux-256color entries; this can be used inside tmux forNicholas Marriott
correct italics support. ok naddy (on a slightly older version)
2015-04-29Use if_get() after every tsleep(), in case the bottom half of the driverTheo de Raadt
has destroyed or damaged the interface clone. with mpi
2015-04-29If default-terminal is set to "screen" or "screen-*", emulate screen'sNicholas Marriott
historical (incorrect) behaviour for SGR 3 and send smso (standout). Previously, we would send sitm (italics) if the terminal outside had it and smso otherwise. This was acceptably until recently because xterm's terminfo entry lacked sitm, so most users got smso. People who want italics should set default-terminal to the forthcoming "tmux" entry (and be prepared to deal with it being missing on older hosts). As a side-effect this changes default-terminal to be a server rather than a session option. suggested by and ok naddy
2015-04-29Do not mark a block with the MDOC_BROKEN flag if it merely containsIngo Schwarze
a mismatching explicit end macro without actually being broken. Avoids a subsequent upward search for the non-existent breaker ending up in a NULL pointer access; afl test case 005/Apr27 from jsg@.
2015-04-29When the last line of a table layout turns out to be empty, it is deleted.Ingo Schwarze
Do not just free the struct tbl_row but also make sure that no pointer to it remains. Fixing a use after free found by jsg@ with afl.
2015-04-29Check arguments before eval so we don't end up with a cryptic error message.Antoine Jacoutot
reported by jasper@ While here: _rc_is_supported() -> _rc_not_supported() - saves a fork - reduces triple negation to double negation in _rc_not_supported() - simplifie condition for rc_restart=NO from schwarze@ ok jasper@ schwarze@
2015-04-29Improve the error message in case somebody has configured an invalid PAGER.Ingo Schwarze
Suggested by Lorenzo Beretta <lory dot fulgi at infinito dot it>.
2015-04-29support passing a template file for the auto-allocation to disklabel.Henning Brauer
template gives mountpoints, min-max size ranges and percentage of disk foremost intended for autoinstalls, installer bits to follow soon. with input from many, ok theo
2015-04-29Make some regular expressions more strict. This allows the testsAlexander Bluhm
to pass also if relayd is compiled with DEBUG.
2015-04-29When the HTTP client did close the connection while relayd was stillAlexander Bluhm
parsig the HTTP header, the session was never destroyed. This resulted in a file descriptor leak. Add a check wether the protocol knows how much data to expect. If relayd is reading unlimited data or is expecting nothing to read, ignore the end-of-file. Otherwise it is a protocol violation, so close the session immediately. While there, make relayd compile with DEBUG defined. Based on a diff from claudio@; tested by claudio@; OK claudio@ benno@
2015-04-29the non braced do while made my teeth hurtTheo de Raadt
2015-04-29Also generate db_structinfo.txt with struct member offset and size infoPhilip Guenther
prodded by deraadt@ and miod@
2015-04-29Delete the duplicated sched_{policy,param} members from the internal structPhilip Guenther
pthread and instead use the values from the embedded struct pthread_attr. For bonus points, pay attention to the sched_inherit attribute and possibly set the values from the parent thread. Problem noted by natano of bitrig.
2015-04-29Add tests for ListenAddress/Port/AddressFamily in alternate orders.Darren Tucker
2015-04-29Remove a check for NULL that would have been after a NULL dereferenceJonathan Gray
if callers of save_vec() weren't expected to pass a non NULL pointer as an argument. ok kettenis@
2015-04-29Move a variable's initialisation so a panic will work as intended.Jonathan Gray
ok guenther@ deraadt@
2015-04-29Change internal xrealloc() to a idiom-following xreallocarray().Theo de Raadt
This loses a "new size is 0" failure case. Probably not relevant; and since we develop this in OpenBSD, we'll catch that before someone else imports this... ok millert
2015-04-29Allow ListenAddress, Port and AddressFamily in any order. bz#68,Darren Tucker
ok djm@, jmc@ (for the man page bit).
2015-04-29Add whitespace and replace OPENSSL_free with free in documentation.Doug Hogan
ok jsing@
2015-04-29Call CBB_add_space() rather than reimplementing it.Doug Hogan
ok jsing@
2015-04-29Rename cbb_buffer_add_u to cbb_add_u and remove redundant code.Doug Hogan
All of cbb_buffer_add_u's callers first call CBB_flush and send cbb->base. cbb_add_u() now has that common code in one place. ok jsing@
2015-04-29Added len_len error checking for internal cbb_buffer_add_u().Doug Hogan
ok jsing@
2015-04-29Call CBS_mem_equal() rather than reimplementing it.Doug Hogan
ok jsing@
2015-04-29Avoid NULL deref in CBS_get_any_asn1_element().Doug Hogan
This function is documented as allowing NULL for out_header_len. ok jsing@
2015-04-29Added error checking for len argument in cbs_get_u().Doug Hogan
tweak + ok jsing@
2015-04-29free() can handle NULL.Doug Hogan
ok jsing@
2015-04-29Add missing #include <stdint.h> for SIZE_MAXTodd C. Miller
2015-04-29Reject dNSName of " " for subjectAltName extension.Doug Hogan
RFC 5280 says " " must not be used as a dNSName. ok jsing@ jca@
2015-04-29Add missing #include <stdint.h> for SIZE_MAXTodd C. Miller
2015-04-29Add missing BN_CTX_end() calls.Doug Hogan
After calling BN_CTX_start(), there must be a BN_CTX_end() before returning. There were missing BN_CTX_end() calls in error paths. One diff chunk was simply removing redundant code related to this. ok deraadt@
2015-04-29VERBOSESTATUS or no VERBOSESTATUS, failed or missing dumps are stillAlexander Hall
worth noting "go ahead" schwarze@
2015-04-28Explicitly include .codepatch and .codepatchend in .rodata such thatMark Kettenis
the binutils 2.17 linker doesn't make them disappear. ok deraadt@, guenther@
2015-04-28ajacoutot spotted a problem with the new sshd logic (to disable root loginsStuart Henderson
by default completely in most cases, except where a public ssh key was provided to autoinstall) - in the case where a (non-root) account was created, sshd was being disabled; this diff fixes it. Looks good ajacoutot, OK djm@, extensive testing+OK rpe@,
2015-04-28Protect the per-process itimerval structs with a mutex. We update theseMark Kettenis
from hardclock() which runs without grabbing the kernel lock. This means that two threads could concurrently update the struct which could lead to corruption of the value which in turn could stop the timer. It could also result in getitimer(2) returning a non-normalized value. With help from guenther@. ok deraadt@, guenther@
2015-04-28Don't grab the kernel lock for clock interrupts. The way we use mutexesMark Kettenis
these days is incompatible with that practice and leads to deadlocks. ok jsing@
2015-04-28Make sure to overwrite sdl_type after calling ether_ifattach().Martin Pieuchot
Fix a problem found by Johan Huldtgren, ok phessler@
2015-04-28Fix a memory leak in an error path found by Maxime Villard'sJonathan Gray
Brainy Code Scanner.
2015-04-28tidy up the prebind text; prompted by zhukJason McIntyre