summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2016-05-31To store MMC position, use samples (at device rate) as time unitsAlexandre Ratchov
instead of 2400-ths of second. No behaviour change.
2016-05-30Backout rev. 1.43 for now.Ingo Schwarze
The function update_progress_meter() calls refresh_progress_meter() which calls snmprintf() which calls malloc(); but update_progress_meter() acts as the SIGALRM signal handler. "malloc(): error: recursive call" reported by sobrado@.
2016-05-30Make sed use the new REG_STARTEND | REG_NOTBOL combination. This fixes a beginMartijn van Duren
of word mismatch as reported by jsg@. Discussed with otto@ and others early on, earlier version tested in ports build by aja@ OK millert@ Few readability tweaks and OK schwarze@
2016-05-30Even when only writing an unescaped character, the dst buffer may need toIngo Schwarze
grow, or it would be overrun; issue found by tb@ with malloc.conf(5) 'C'. While here, reserve an additional byte for the terminating NUL up front such that we don't have to realloc() later just for that. OK tb@
2016-05-30Fix two rare edge cases:Ingo Schwarze
1. If vasprintf() returns < 0, do not access a NULL pointer in snmprintf(), and do not free() the pointer returned from vasprintf() because on some systems other than OpenBSD, it might be a bogus pointer. 2. If vasprintf() returns == 0, return 0 and "" rather than -1 and NULL. Besides, free(dst) is pointless after failure (not a bug). One half OK martijn@, the other half OK deraadt@; committing quickly before people get hurt.
2016-05-30Cache the window styles and do not look up the window-style optionsNicholas Marriott
unless they have changed.
2016-05-30Do not draw character to screen if it has not changed, and do not saveNicholas Marriott
last character if it won't be used. This (and last few commits) prompted by a report from Hubert depesz Lubaczewski.
2016-05-30Send two cub1 instead of using cub for moving the cursor two left. ThisNicholas Marriott
is normally better because using cub1 will be ^H^H (so two bytes) but cub would be ^[[2D (four).
2016-05-29Eat all blanks between the VARIABLE keywords and the definition,Todd C. Miller
not just the first one. Otherwise we end up storing the blanks. Now the file generated by mklocale(1) is the same regardless of whether or not the input is sent through the C preprocessor. OK deraadt@ jca@ schwarze@
2016-05-28Fix pledge violation with -P s used and we need to supply a passwordBob Beck
for an http proxy - we need tty in this case. Found and fixed by Anthony Coulter <bsd@anthonycoulter.name>. ok tb@
2016-05-28Fix nc -verbose mode when used on a unix domain socket.Bob Beck
Noticed by and a modified version of fix from <attila@stalphonsos.com>
2016-05-28Test if stdin is a terminal before resetting the tty state.Martijn van Duren
Diff supplied by Kai Antweiler. OK semarie@ and deraadt@
2016-05-28repair braces. from ilya.kaliman/gsoares/natanoTed Unangst
2016-05-28Simplify search form: minus two visible control elements, minusIngo Schwarze
one table, minus twenty lines of code, no loss of functionality. No idea why i didn't do this earlier...
2016-05-28Fix file block size rounding and ensure it's large enough to store aAlexandre Ratchov
full audio block.
2016-05-27Padding cell is always the same so use a static.Nicholas Marriott
2016-05-27Break the save-last-cell code into a separate function (so it can beNicholas Marriott
called conditionally later).
2016-05-27Most of the utf8_data is fixed so simplify utf8_set to use a memcpy.Nicholas Marriott
2016-05-27Use getprogname() instead of __progname to make portability easier.Nicholas Marriott
2016-05-27When resampling, use the exact resampling factor instead of the ratioAlexandre Ratchov
between input and output block sizes. This was inherited from sndiod, but is not required for files because they are continuous streams of samples and do not need to be split in blocks of equal duration. This change makes playback/recording rate match exactly the requested sample rate.
2016-05-27Flush rec buffer if there's less than one block space left and refillAlexandre Ratchov
play buffer if there's less than one block of data left. This is the correct condition in the general case. No behaviour change, as all input/output is multiple of the block size.
2016-05-27Simplify slot_fill() and slot_flush(). No behaviour changeAlexandre Ratchov
2016-05-27Make resamp_do() get the exact number input and output samples andAlexandre Ratchov
provide routines to calculate them. This way we don't rely on it to calculate the bytes procuded/consumed anymore. No behaviour change.
2016-05-27Per the libtls man page, tls_init() must be called prior to any otherJoel Sing
tls_* function; so actually do that.
2016-05-27Revert CHAR_T removal. Some signedness flaws were introduced.Martijn van Duren
Found the hard way by jca@
2016-05-26Use "cc -E" instead of "cpp". OK deraadt@ natano@Todd C. Miller
2016-05-26Extend 0x1234 keys form to more bits so that Unicode keys work.Nicholas Marriott
2016-05-26Just nuke environ instead of trying to unsetenv everything because thatNicholas Marriott
doesn't necessarily work if there is an entry with an empty name.
2016-05-26Make format conversion routines return the number of framesAlexandre Ratchov
consumed from both input and output buffers. No behaviour change.
2016-05-25To prevent screwing up terminal settings when printing to theIngo Schwarze
terminal, for ASCII and UTF-8, escape bytes not forming characters and bytes forming non-printable characters with vis(3) VIS_OCTAL. For other character sets, abort printing of the current string in these cases. In particular, * let scp(1) respect the local user's LC_CTYPE locale(1); * sanitize data received from the remote host; * sanitize filenames, usernames, and similar data even locally; * take character display widths into account for the progressmeter. This is believed to be sufficient to keep the local terminal safe on OpenBSD, but bad things can still happen on other systems with state-dependent locales because many places in the code print unencoded ASCII characters into the output stream. Using feedback from djm@ and martijn@, various aspects discussed with many others. deraadt@ says it should go in now, i probably already hesitated too long
2016-05-25Avoid a use-after-free.Kenneth R Westerback
Diff from Vladimir Sotirov via tech@. Thanks! ok millert@
2016-05-25Don't warn when read or write block at cycle boundary, this mayAlexandre Ratchov
happen when remote devices are used and is not an error.
2016-05-25Assert we're not freeing buffers we didn't allocateAlexandre Ratchov
2016-05-25Log files skipped during poll() as well, and flush the log bufferAlexandre Ratchov
right before we call poll().
2016-05-25Set initial mixer slot name to "prog" to make all slots visible inAlexandre Ratchov
audioctl and alike.
2016-05-24KNF compression proposal and simplify the client side a little. ok djm@Darren Tucker
2016-05-24Back out 'plug memleak'.Darren Tucker
2016-05-23prefer agent-hosted keys to keys from PKCS#11; ok markusDamien Miller
2016-05-23Use a fixed buffer for strftime() because there is no portable way toNicholas Marriott
tell if the buffer is too small, and an expanding buffer is overkill anyway.
2016-05-23Remove unused variable, from Ben Boeckel.Nicholas Marriott
2016-05-23Trim trailing whitespace from man.conf lines. OK schwarze@.Todd C. Miller
2016-05-23UTF-8 support.Ingo Schwarze
Using feedback about bugs in earlier versions from Matthew Martin <phy1729 at gmail dot com> and from tsg@ who tested it with afl(1). OK czarkoff@ tsg@
2016-05-23Plug mem leak in filter_proposal. ok djm@Darren Tucker
2016-05-22On hppa, function pointer comparison can require dereferencing them.Philip Guenther
kdump can't do that for a sigaction sa_handler pointer from the trace, so cast to void* to suppress it. ok deraadt@
2016-05-19fix type of ed25519 valuesDamien Miller
2016-05-18Also print a warning if the user doesn't fill the mail SubjectJeremie Courreges-Anglas
Alternative diff by Tim (trondd ! kagu-tsuchi . com), ok tedu@
2016-05-18Print a user-friendly message if some fields are missing; ok tedu@Jeremie Courreges-Anglas
2016-05-17Refactor the handling of pledge and the optional user string: The threeTheo Buehler
way pledge introduced by millert@ in -r1.70 is now a two way pledge, one for non-root and one for root. This also ensures that root drops the id promise in all cases early on. This disentangling of the bits for root and non-root simplifies the code paths in all cases. ok millert@
2016-05-17Move the code block that builds up a default seed further down in orderTheo Buehler
to reduce the noise in the next commit. While there, fix the indent level of a bit introduced in the previous commit. ok millert@
2016-05-17Fix "skeyinit username" run as root. Also reduce the pledgeTodd C. Miller
promise when run as root since we don't need proc or exec as root. OK tb@, earlier version OK deraadt@