summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2017-03-02close ftp(1)'s output file to avoid leaking one FD per request.Stuart Henderson
ok deraadt
2017-03-01update currency exchange rates;Jason McIntyre
2017-02-28Use a do{}while loop with ssize_t return value when calling tls_read()Philip Guenther
problem noted by and ok jsg@
2017-02-28small memleak: free fd_set on connection timeout (though we are heading toDamien Miller
exit anyway). From Tom Rix in bz#2683
2017-02-27errant dot; from klemens nanniJason McIntyre
2017-02-27If splitw -b is used, insert the new pane before the current one in theNicholas Marriott
pane list. This means the numbering is in order (for example for display-panes) and fixes a problem with redrawing the active pane borders.
2017-02-26Move away from BN_zero, the one returning an int is deprecated and theOtto Moerbeek
new one is a void function. From Daniel Cegielka.
2017-02-24add support for variables in the lhs of SYSV modifiers.Marc Espie
lack of support noted by naddy@ source, xenocara, and ports still build without a hitch. okay naddy@
2017-02-24might as well set the listener socket CLOEXECDamien Miller
2017-02-23- write parse errors to stderr, prompted by Martijn DekkerOtto Moerbeek
- we're only interactive if stdout en stderr are a tty as well as stdin
2017-02-23Introduce e command, equivalent to p, but writes to stderrOtto Moerbeek
2017-02-22Pledge man.cgi(8).Ingo Schwarze
Based on a more complicated patch from semarie@. Sebastien and tb@ both agree with the simplification.
2017-02-22Since SQLite is gone, we no longer need the "flock" pledge.Ingo Schwarze
Patch from semarie@, OK tb@.
2017-02-22Remove unused-with-dead-store variable oldpsanl.Tom Cosgrove
From Daniel Cegielka - thanks ok jca@
2017-02-22Minor bits: fix an array size, add comment, make grid_cell_entry static.Nicholas Marriott
2017-02-22Handle an odd edge case where .It is preceded by .Sm.Ingo Schwarze
NULL dereference in man.cgi reported by Gabriel Guzman <gabe at guzman dash nunez dot com> on misc@.
2017-02-21Change pane redraw to collect cells up as well, and simplify it a bit.Nicholas Marriott
2017-02-21Don't need is1,is2,is3 so remove them.Nicholas Marriott
2017-02-21Scrolling at least needs to be flushed before sending EL to the terminalNicholas Marriott
(but it is simpler to flush everything, so do that instead).
2017-02-20Crank all members of struct ipipstat to 64 bitsJeremie Courreges-Anglas
Will make conversion to percpu counters easier. ok bluhm@
2017-02-20* Hoist Copyright notice to the top, don't hide it in the middle.Ingo Schwarze
* Add Copyright and license for my changes, and for pjanzen@'s in 2000. * Comply with the obnoxious license condition that we must list changes in the source code. * Delete a fragment of an ancient RCS change log listing changes by Gareth McCaughan himself. The license does NOT require us to keep that, and it does not contain interesting information, not even for historians. OK pjanzen@ deraadt@
2017-02-19Do not break the line at U+00A0 NO-BREAK SPACE.Ingo Schwarze
Bug pointed out by Eric dot Pruitt at gmail dot com on misc@. OK millert@ bentley@
2017-02-19Recognise AArch64 binaries and core dumps.Jonathan Gray
2017-02-19Add SGR 28 to clear hidden flag.Nicholas Marriott
2017-02-19Add a common nl_langinfo(CODESET) alias for US-ASCII "ANSI_X3.4-1968"Damien Miller
that is used by Linux. Fixes mprintf output truncation for non-UTF-8 locales on Linux spotted by dtucker@; ok deraadt@ schwarze@
2017-02-18preconv_encode() can take a const input buffer;Ingo Schwarze
diff from <christos at NetBSD>
2017-02-17Use typographic quotes rather than '"' for .Rs %T (no change for -TasciiIngo Schwarze
output, of course). Patch from bentley@ in November 2014. This can be committed now because groff merged Anthony's patch yesterday. Simply committing myself because asking Anthony to go search for his two-year-old patch and have him discover that it had accumulated an average of (felt) two or three conflicts per line by now would have been mean, even if hilarious.
2017-02-17Many people have been complaining for a long time that ``...'' looksIngo Schwarze
ugly in -Tascii output. For that reason, bentley@ submitted patches to render "..." instead to groff in November 2014 (yes, more than two years ago). Carsten Kunze yesterday merged them for the upcoming groff-1.22.4 release. Yay! Consequently, do the same in mandoc: Render \(Lq and \(Rq (which are used for .Do, .Dq, .Lb, and .St) as '"' in -Tascii output. All other output modes including -Tutf8 remain unchanged.
2017-02-17Fix a read buffer overrun that copied random data from memory intoIngo Schwarze
text nodes when a string passed to deroff() ended in a backslash and the byte after the terminating NUL was non-NUL, found by tb@ with afl(1). Invalid bytes so copied with the high bit set could later sometimes trigger another out of bounds read access to static memory in roff_strdup(), so add an assertion there to abort safely in case of similar data corruption.
2017-02-17Do not show rsa1 key type in usage when compiled without SSH1 support.Darren Tucker
2017-02-17ifdef out "rsa1" from the list of supported keytypes when compiled withoutDarren Tucker
SSH1 support. Found by kdunlop at guralp.com, ok djm@
2017-02-17For ProxyJump/-J, surround host name with brackets to allowDamien Miller
literal IPv6 addresses. From Dick Visser; ok dtucker@
2017-02-16Surprisingly, groff does not support scaling units in .Bl -columnIngo Schwarze
column width specifiers, so stop supporting them, too. As a side effect, this fixes an assertion failure that tb@ found with afl(1), triggered by: .Bl -column -4n
2017-02-16There are buggy terminals out there that do not move the cursor to 0,0Nicholas Marriott
after CSR, so invalidate the cursor position rather than assuming 0,0.
2017-02-16Handle insert cells when cursor at edge of screen correctly, and do aNicholas Marriott
full flush before insert.
2017-02-16Merge clear-history into capture-pane.Nicholas Marriott
2017-02-16Fix rev. 1.183: -O syntax is different in default apropos(1) outputIngo Schwarze
mode and in other output modes, so do not error out prematurely. Also sort local variables in main() while here.
2017-02-16Style nits.Nicholas Marriott
2017-02-16Fix block scoping error if an explicit block is broken by twoIngo Schwarze
implicit blocks (.Aq Bq Po .Pc) that left the outer breaker open and could in exceptional cases, like between .Bl and .It, cause tree corruption leading to NULL dereference. Found by tb@ with afl(1). While here, do not mark intermediate ENDBODY markers as broken.
2017-02-16Remove the ENDBODY_NOSPACE flag, simplifying the code.Ingo Schwarze
Comparing to groff output, it appears that all cases where it was used and made a difference actually require the opposite, ENDBODY_SPACE. I have no idea why i added it back in 2010; maybe to compensate for some other bug that has long been fixed.
2017-02-15Fix memory leaks in match_filter_list() error paths.Jonathan Gray
ok dtucker@ markus@
2017-02-15Fix the code supposed to abort when attempting to detach a slot that'sAlexandre Ratchov
not on the slot list (the check was a no-op). Found by jsg@, thanks!
2017-02-15Fix previous: I forgot that i had to change the convention howIngo Schwarze
a node is marked as "not a macro" when unifying the parsers. Confirmed to work by Sevan Janiyan.
2017-02-15Do not clear to end of screen unless the pane is at the bottom.Nicholas Marriott
2017-02-15"status bar" -> "status line" for consistency, from Benjamin Dopplinger.Nicholas Marriott
2017-02-15fix division by zero crash in "df" output when server returns zeroDamien Miller
total filesystem blocks/inodes. Spotted by Guido Vranken; ok dtucker@
2017-02-14Make source-file look for files relative to the client working directoryNicholas Marriott
(like load-buffer and save-buffer), from Chris Pickel. Also break the where-is-this-file code out into its own function for loadb and saveb.
2017-02-13Collected cells may still need to be extended for RGB colours.Nicholas Marriott
2017-02-12Do not access a NULL pointer if a matrix or square root are empty.Ingo Schwarze
Crashes found by tb@ with afl(1).
2017-02-11Do not read one element past the end of the static const termacts array.Ingo Schwarze
Bug found by Sevan Janiyan <venture37 at geeklan dot co dot uk> who ran the OpenBSD mandoc test suite on Ubuntu on POWER8 (sic!) and reported that mdoc/Sh/before.in failed in -Tman mode. If that isn't power testing, i don't know...