summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2016-02-09avoid special characters; from michael reedJason McIntyre
2016-02-09turn off more old crypto in the client: hmac-md5, ripemd, truncatedDamien Miller
HMACs, RC4, blowfish. ok markus@ dtucker@
2016-02-09Replace a three step string duplication with strndup().mmcc
ok and with input from tb@
2016-02-09For a long time, nomem() has been a wrapper for err(1, NULL) andtb
meanwhile emalloc() has turned into calloc() by doing malloc + memset. Delete them and Use the libc functions directly instead. I've been running with this diff for ages and was reminded of it by a similar suggestion from mmcc@ and by recent diffs from Michal Mazurek. ok mmcc@
2016-02-08don't attempt to percent_expand() already-canonicalised addresses,Damien Miller
avoiding unnecessary failures when attempting to connect to scoped IPv6 addresses (that naturally contain '%' characters)
2016-02-08Fix a bug that caused nothing to be skipped when skipping exactly theIngo Schwarze
number of bytes present in a regular file was requested. Bug reported by a user called "tdm" on the comstyle #openbsd IRC channel. Patch written by Michal Mazurek <akfaew at jasminek dot net>. OK jung@ millert@ czarkoff@
2016-02-08remove main() declarationmmcc
from Michal Mazurek
2016-02-08sslv3 has been removed;Jason McIntyre
prompted by a mail from jiri navratil help/ok sthen
2016-02-08refactor activation of rekeyingDamien Miller
This makes automatic rekeying internal to the packet code (previously the server and client loops needed to assist). In doing to it makes application of rekey limits more accurate by accounting for packets about to be sent as well as packets queued during rekeying events themselves. Based on a patch from dtucker@ which was in turn based on a patch Aleksander Adamowski in bz#2521; ok markus@
2016-02-07require a tty for the password.Ted Unangst
sudo regression noted by miod, fix by millert
2016-02-05Explain why we intentionally violate POSIX here, to prevent people fromIngo Schwarze
being sad that they can't use UTF-8 in write(1), and to prevent that they waste their time trying to fix it. While here, fix some broken escaping. OK jmc@ martijn@
2016-02-05Make write explicitly ASCII only by transforming UTF-8 characters and non-ASCIImartijn
bytes to a single '?'. This prevents sending of potentially harmful bytes to terminals who don't support UTF-8. written with help from schwarze@ text suggestions by jmc@ OK schwarze@ and semarie@
2016-02-05Only check errno if read() has returned an error. EOF is not an error.Christian Weisgerber
This fixes a problem where the mux master would sporadically fail to notice that the client had exited. ok mikeb@ djm@
2016-02-05Sort includes.Jeremie Courreges-Anglas
2016-02-05No need for pledge("rpath")Jeremie Courreges-Anglas
2016-02-05Do not wrap cursor at start or end of history, from Michal Mazurek.Nicholas Marriott
2016-02-05pledge(2) for talk(1):mestre
At the beginning the largest pledge is the following: rpath: read ~/.terminfo (the reason was changed pointed out by semarie@) inet/dns: talk may need to connect to a remote host and resolve it getpw: if getlogin(2) fails then it needs getpwuid(3) as a fallback tty: this is a typical tty application, so it'll always need this annotation Then just before the application main loop check if the talk is with local user so it only needs "stdio tty", if it's remote then it needs "stdio inet tty". I couldn't test this with a remote host to confirm if it needs inet or not but as per jca@'s comment "tighter settings - if possible - can happen later" ok jca@ and also discussed with tb@
2016-02-05avoid an uninitialised value when NumberOfPasswordPrompts is 0Jonathan Gray
ok markus@ djm@
2016-02-05mention internal DH-GEX fallback groups; bz#2302Damien Miller
2016-02-05better description for MaxSessions; bz#2531Damien Miller
2016-02-04printf argument casts to avoid warnings on strict compilersDamien Miller
2016-02-04Include stdint.h for the uint{8,16}_t types. OK nicm@Todd C. Miller
2016-02-04Set up -t flag properly when passing new-session -A off toNicholas Marriott
attach-session, GitHub issue 295.
2016-02-03Rename a local var so that we can call the global message buffer msg.mmcc
ok nicm, tb
2016-02-03fix off-by-one in argument parsingAlexander Hall
ok martijn@
2016-02-03Remove needless alias macros for malloc and calloc. No binary change. Immcc
got this upstreamed a few weeks ago. ok tb (less a few style tweaks), martijn (who suggested style tweaks)
2016-02-01Avoid ugly "DISPLAY "(null)" invalid; disabling X11 forwarding"Todd C. Miller
message when DISPLAY is not set. This could also result in a crash on systems with a printf that doesn't handle NULL. OK djm@
2016-02-01Hmm, SHELLSPRINT may be pointless, but keep it for consistency with other dbs.Jeremie Courreges-Anglas
2016-02-01Pointless #defineJeremie Courreges-Anglas
was: #define SHELLSPRINT printf("%s\n", sh)
2016-02-01missing word; from jan staryJason McIntyre
2016-02-01update currency exchange rates;Jason McIntyre
2016-02-01Remove unused headers and sort the remainingmestre
Remove lint-style comments Swap hardcoded string on usage() for __progname OK tb@
2016-01-31Clear RGB flags during selection.Nicholas Marriott
2016-01-31Whoops, need this for the previous reverse trim commit too.Nicholas Marriott
2016-01-31Add RGB escape sequences for capture-pane -e.Nicholas Marriott
2016-01-31Support negative trim values (#{=-10:pane_title}) to trim from the end,Nicholas Marriott
suggested by Kevin Brubeck Unhammer.
2016-01-31Fix new-session with -t after command flags changes, reported by Michael ↵Nicholas Marriott
Graczyk.
2016-01-30/var/tmp is dead, long live /tmpmartijn
OK zhuk@ and tb@
2016-01-30replace tail with basenamemartijn
OK tb@
2016-01-30replace progname variable in gs structure with getprognamemartijn
OK zhuk@ and tb@
2016-01-29Remove leftover roaming dead code. ok djm markus.Darren Tucker
2016-01-29Check that byte order is native only if we're using more than oneAlexandre Ratchov
byte per sample, check that samples are lsb-aligned only if there's padding. Fixes unsupported parameters not being detected if compiled in 24-bit mode and sndiod is not running.
2016-01-29sort includesmmcc
from Michael Reed
2016-01-29remove unneeded CHAR_BIT macrommcc
from Michael Reed
2016-01-29Therefor -> Therefore (where appropriate)tb
from ray@, ok jmc@
2016-01-29Support for RGB colour, using the extended cell mechanism to avoidNicholas Marriott
wasting unnecessary space. The 'Tc' flag must be set in the external TERM entry (using terminal-overrides or a custom terminfo entry), if not tmux will map to the closest of the 256 or 16 colour palettes. Mostly from Suraj N Kurapati, based on a diff originally by someone else.
2016-01-29We're not allowed to change audio parameters while the device isAlexandre Ratchov
in use by another program. Explain that and remove wrong example.
2016-01-29Display play and record parameters that are not independentAlexandre Ratchov
as a single variable (this corresponds to the way the audio driver handles them). As we're at it, drop unused/duplicate parameters. ok mpi
2016-01-29include packet type of non-data packets in debug3 output;Damien Miller
ok markus dtucker
2016-01-29remove superfluous macrommcc
ok nicm