summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2015-12-04Properly handle invalid %-format by calling fatal.Tobias Stoeckmann
ok deraadt, djm
2015-12-04Document that the -M option doesn't save a backup when passed ''. Alsommcc
clean up the corresponding logic to avoid a useless rename(2) call. ok deraadt sthen
2015-12-04remove -i from SYNOPSIS and usage();Jason McIntyre
2015-12-04read_hints should also protect against ferror.Marc Espie
obvious commit
2015-12-04implement SHA2-{256,512} for RSASSA-PKCS1-v1_5 signatures (user and host auth)Markus Friedl
based on draft-rsa-dsa-sha2-256-03.txt and draft-ssh-ext-info-04.txt; with & ok djm@
2015-12-04cap_mkdb no longer needs to understand terminfo files, so remove -i.Nicholas Marriott
ok tedu millert
2015-12-04polishingTed Unangst
2015-12-04espie reminds me that EOF can happen for errors as well, so check for thatTed Unangst
happening and print a message.
2015-12-04clean up agent_fd handling; properly initialise it to -1 andDamien Miller
make tests consistent ok markus@
2015-12-03pledges ssh client:Sebastien Marie
- mux client: which is used when ControlMaster is in use. will end with "stdio proc tty" (proc is to permit sending SIGWINCH to mux master on window resize) - client loop: several levels of pledging depending of your used options ok deraadt@
2015-12-03Print the interface index, we no longer have a pointer to the interface.Martin Pieuchot
Found the hardway by deraadt@
2015-12-03UTF-8 support: In a UTF-8 locale, properly align columns in theIngo Schwarze
presence of zero-width and double-width characters and replace non-printable codepoints and invalid bytes with ASCII question marks. No change in the C/POSIX locale. As a side effect, get rid of all pointer to pointer variables and simplify some of the code. Partially based on ideas from tedu@. Feedback and OK czarkoff@, OK tedu@.
2015-12-03Change /usr/share/misc/terminfo.db to /usr/share/terminfo.Nicholas Marriott
ok millert
2015-12-03After inserting a backslash, don't treat ^H ^? or ^U as special cases.Anthony J. Bentley
These days, ^V to escape is a universal feature and needing two keystrokes to delete backslashes is really annoying. ok tb@ claudio@ schwarze@
2015-12-03use the more direct auth interfaces so we can provide a custom passwordTed Unangst
prompt to the user (including username and host) so it's always clear what program is asking. request from henning with a hint from millert. ok deraadt jung zhuk
2015-12-02Mark new active pane changed after pane lost in window, and afterNicholas Marriott
break-pane. Reported by tim@.
2015-12-02Add "cpath" to the ssh-agent pledge so the cleanup handler can unlink().Doug Hogan
ok djm@
2015-12-02ssh-agent pledge needs proc for askpass; spotted by todd@Damien Miller
2015-12-02UTF-8 support: Implement -c and -nIngo Schwarze
and let -d accept a multibyte delimiter character. While here, simplify the code by switching from fgetln(3) to getline(3) and from hand-crafted string parsing to strstr(3) and strchr(3). OK tedu@ czarkoff@ zhuk@.
2015-12-01basic pledge() for ssh-agent, more refinement neededDamien Miller
2015-12-01s_server also needs DNS; reported by tb@Jeremie Courreges-Anglas
2015-12-01Undo previous, pledge("dns") was already present. The problem was in s_server.Jeremie Courreges-Anglas
2015-12-01Do not deref wp if window_get_active_at returns NULL which can happen onNicholas Marriott
very large terminals, from Michael Graczyk.
2015-12-01update currency exchange rates;Jason McIntyre
2015-12-01pledge dns so openssl can use dns.. noticed and fix by todd@Bob Beck
ok jcs@ deraadt@ theo@
2015-12-01We no longer need pledge "wpath" since "tty" allows read-write onTodd C. Miller
/dev/tty.
2015-11-30change Xrs from now-defunct db(3) to dbopen(3); this wasn;t aJason McIntyre
straight replace: thanks both to schwarze and maja for feedback on how to rewrite parts; i've snuck in an rcs id->openbsd id change in dev_mkdb too;
2015-11-29pledge, better fatal() messages; feedback deraadt@Damien Miller
2015-11-29wrap long lineTheo de Raadt
2015-11-29Delete a duplicated linePhilip Guenther
ok jmc@
2015-11-29Drop pledge proc exec getpw after authenticating.Todd C. Miller
2015-11-29Remove useless getpwnam() call after getpwuid(). Noticed by deraadt@Todd C. Miller
2015-11-29telnet: check if fd is a tty before calling tcsetattr(fd, TCSADRAIN)Sebastien Marie
ok deraadt@
2015-11-29fix duplicate targets in target list for good: split previous groupling fixMarc Espie
in two. Catch 22: we have to dedup targets very early so that commands get attached correctly, but we can't figure out the grouplings heuristics until we have all commands... ok millert@
2015-11-29skeyinit needs pledge proc and exec to use BSD auth.Todd C. Miller
2015-11-29Allow the -n flag to work in -s mode.Todd C. Miller
2015-11-29Add missing rip() before the call to strtonum(). Otherwise, strtonumTodd C. Miller
errors out due to the newline.
2015-11-28do not leak temp file if there is no known_hosts fileTheo de Raadt
from craig leres, ok djm
2015-11-28don't include port number in tcpip-forward replies for requestsDamien Miller
that don't allocate a port; bz#2509 diagnosed by Ron Frederick ok markus
2015-11-28fix exit status on pledge(2) error, where it should be >1Gleydson Soares
OK millert@ deraadt@
2015-11-27after reading a too long line, restart at the beginning of the buffer soTed Unangst
we don't keep writing past the end. (the perils of trying to recover from parse errors.) noticed by Jan Schreiber
2015-11-27Do not set a limit on the length of commands when printing them.Nicholas Marriott
2015-11-27pledge "stdio rpath wpath cpath fattr tty proc exec" except for theTheo de Raadt
-p option (which sadly has insane semantics...) ok semarie dtucker
2015-11-26Delete YP password related code. As a result, these can also beTheo de Raadt
pledged. Keep an eye out for regressions, because they could be uncomfortable. ok beck semarie
2015-11-26Cleanup in the opposite order as initialization, inline privdrop()Alexandre Ratchov
function. No behaviour change.
2015-11-26No point in trying to go on when elementary database operationsIngo Schwarze
like preparing queries or binding variables fail; that won't yield useful results anyway but may generate huge pointless error messages. Issue reported by deraadt@.
2015-11-25fix latest: don't set d->path as we just allocated itAlexandre Ratchov
2015-11-25Allocate device names in the heap, so they can be generated.Alexandre Ratchov
2015-11-25spacingAlexandre Ratchov
2015-11-25Don't print error if none to print.Nicholas Marriott