summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2018-05-04Improve logging of sessions.Nicholas Marriott
2018-05-03Use window target if specified and exists even when looking for anNicholas Marriott
index, fixes neww -a with -t as well.
2018-05-03Minor correction: we render HTML character references hexadecimal,Ingo Schwarze
not decimal; bentley@ changed that in html.c on July 14, 2017.
2018-05-03test for failing allocation using the standard idiom; prompted by Nan XiaoOtto Moerbeek
ok tb@
2018-05-01skip printing the embedded style sheet if an external style is referencedIngo Schwarze
2018-05-01update currency exchange rates;Jason McIntyre
2018-04-29Simpler description of output formats, shortening the manual page by 15 lines.Ingo Schwarze
Avoid the double redirection from -Tutf8 via -Tlocale to -Tascii. Add LC_CTYPE to the ENVIRONMENT section. While here, also correct a few inaccuracies and tweak some wordings. Triggered by a question from Laura Morales <lauretas at mail dot com>.
2018-04-27trailing whitespace, and move arg checking before pledgeBob Beck
in preparation for pledgepath ok deraadt@
2018-04-26ioctlname() prototype is already in ../kdump/kdump.hPhilip Guenther
2018-04-26Prefer <fcntl.h> over <sys/fcntl.h> in userlandPhilip Guenther
While here, delete some extra #includes and apply style(9) sort rules. ok deraadt@ krw@ mpi@
2018-04-26Since the previous commit, ssh regress test sftp-chroot was failing.Alexander Bluhm
The sftp program terminated with the wrong exit code as sftp called fatal() instad of exit(0). So when the sigchld handler waits for the child, remember that it was found. Then don't expect that main() can wait again. OK dtucker@
2018-04-26Use <fcntl.h> instead of <sys/file.h> for open() and friends.Philip Guenther
Delete a bunch of unnecessary #includes and sort to match style(9) while doing the above cleanup. ok deraadt@ krw@
2018-04-26AF_LOCAL is #define-non-grata; 'local' is 'unix'Philip Guenther
ok jmc@ schwarze@
2018-04-25The cookie in the cookie verify callback needs to be const.Theo Buehler
ok jsing (as part of a larger diff)
2018-04-24add p2k18Mike Larkin
2018-04-24replace my vague and idiosyncratic term "selflink"Ingo Schwarze
with the clearer and more usual "permalink"; suggested by John Gardner <gardnerjohng at gmail dot com>
2018-04-23Add KRB5CCNAME to update-environment.Nicholas Marriott
2018-04-23#aabbcc will use RGB if supported so don't say it is closest match.Nicholas Marriott
2018-04-23Check whether cursor is at start or end when copying rectangularNicholas Marriott
selections, from tb@.
2018-04-23Remove unnecessary brackets.Nicholas Marriott
2018-04-23rxvt-unicode has some funny behaviour when scrolling with the cursor notNicholas Marriott
at column 1, so move it back there first if possible. GitHub issue 1318.
2018-04-19Tweak the description of -l:Ingo Schwarze
Avoid the misunderstanding that the essential purpose of -l is similar to the purpose of the -a option in mandoc(1), which is not the point: the fact that -l implies -a is merely a minor detail. The point of -l is to make man(1) behave like mandoc(1). Move the mention of -a to the end to de-emphasize it. Nate Bargmann reported that this seriously confused him, and i can see why.
2018-04-19Compatibility with man-db:Ingo Schwarze
In page name mode (= man(1) default mode), also try to interpret names containing slashes as absolute or relative file names. Missing feature reported by Nate Bargmann on <groff at gnu dot org>, and the man-db maintainer Colin Watson <cjwatson at debian dot org> explained to me how this is supposed to work.
2018-04-18Change how display-message uses the client. Originally it was onlyNicholas Marriott
intended as the target client where the message should be displayed but at some point (perhaps when -p was added), it was used for format expansion too. This means it can get a bit weird where you have client formats expanding for a client with a different current session than the target session. However, it is nice that display-message can be used to show information about a specific client. So change so that the -c client will be used if the session matches the target session (-t or default), otherwise the best client will be chosen.
2018-04-18Include source function name in grid_check_y logging.Nicholas Marriott
2018-04-18Fix || example.Nicholas Marriott
2018-04-16Disable SSH2_MSG_DEBUG messages for Twisted Conch clients withoutDamien Miller
version numbers since they choke on them under some circumstances. https://twistedmatrix.com/trac/ticket/9422 via Colin Watson Newer Conch versions have a version number in their ident string and handle debug messages okay. https://twistedmatrix.com/trac/ticket/9424
2018-04-14don't free the %C expansion, it's used later for LocalCommandDamien Miller
2018-04-13Use TIOCGWINSZ to reduce the default -Owidth during interactive useIngo Schwarze
on terminals narrower than 79 columns and the default -Oindent on terminals narrower than 66 columns. Requested by and feedback from pirofti@; mpi@ and juanfra@ also like the general direction.
2018-04-13Make sure that mandoc only goes into UTF-8 mode if the user reallyIngo Schwarze
selected UTF-8, not some other multibyte locale. This obviously makes no difference on OpenBSD but improves portability. Issue reported by <Nakayama at NetBSD> via wiz@.
2018-04-13preserve comments before .Dd and .TH (typically Copyright and license)Ingo Schwarze
in full HTML output, but not with -Ofragment, e.g. in man.cgi(8); suggested by Thomas Klausner <wiz at NetBSD>
2018-04-13mg tries to write backups to the wrong directory when run under aFlorian Obser
different effective user, i.e. when invoced via su and backup-to-home-directory is enabled. Problem pointed out and diff provied by Lucas Gabriel Vuotto <lvuotto92 () gmail ! com>, thanks! Subsequently slacked on for nearly a year by yours truly. Then remembered when Han Boetes <hboetes () gmail ! com> came up with a similar diff because of a problem report by Mark Willson where it turned out that getlogin(2) is not very portable. OK tb
2018-04-13notify user immediately when underlying ssh process dies;Damien Miller
patch from Thomas Kuthan in bz2719; ok dtucker@
2018-04-13Defend against user enumeration timing attacks.Darren Tucker
This establishes a minimum time for each failed authentication attempt (5ms) and adds a per-user constant derived from a host secret (0-4ms). Based on work by joona.kannisto at tut.fi, ok markus@ djm@.
2018-04-11preserve comments before .Dd when converting mdoc(7) to man(7)Ingo Schwarze
with mandoc -Tman; suggested by Thomas Klausner <wiz at NetBSD>
2018-04-11Stop telling patch(1) runs ed(1).Vadim Zhukov
okay tb@ and benno@
2018-04-11Allow no client for rename-session, from Ryan Freeman.Nicholas Marriott
2018-04-10Delete the description of the argument of the "ciphers" commandIngo Schwarze
because it was (1) woefully incomplete, (2) partially outdated and wrong, (3) in parts imprecisely worded and hard to understand, (4) excessively technical for a section 1 manual, (5) of excessive size for this particular page, (6) and didn't belong here in the first place because it essentially tried to document a C API - SSL_CTX_set_cipher_list(3), which is now documented, so point to it.
2018-04-10A couple of fixes to the : form of SGR. Apparently there is an extraNicholas Marriott
argument that nobody knew about, so skip that if it exists. Also there are a bunch of useless optional arguments at the end, so ignore those.
2018-04-10print rtable for internet sockets unless it's the default; based on a diffStuart Henderson
from Peter J. Philipp but printing slightly differently to avoid the need for a flag. ok claudio@ bluhm@
2018-04-10Add x and X to choose-tree (with a confirmation prompt) to kill anNicholas Marriott
item. Suggested by Matt Zagrabelny.
2018-04-10typo: "anon's" -> "anons"Mike Larkin
ok jmc, krw, deraadt
2018-04-10Two new low-level roff(7) features:Ingo Schwarze
* .nr optional third argument (auto-increment step size) * \n+ and \n- numerical register auto-increment and -decrement bentley@ reported on Dec 9, 2013 that lang/sbcl(1) uses these.
2018-04-10lots of typos in comments/docs. Patch from Karsten Weiss after checkingDamien Miller
with codespell tool (https://github.com/lucasdemarchi/codespell)
2018-04-09don't kill ssh-agent's listening socket entriely if we fail to accept aDamien Miller
connection; bz#2837, patch from Lukas Kuster
2018-04-09When accessing an undefined number register, define it to be zero, likeIngo Schwarze
the previous commit for strings and macros, only technically simpler. Desired behaviour also mentioned by Werner Lemberg in 2011. This diff adds functionality but is -21 +19 LOC. :-)
2018-04-09the UseLogin option was removed, so remove it here too.T.J. Townsend
ok dtucker
2018-04-09Using an undefined string or macro will cause it to be defined as empty.Ingo Schwarze
Observed by Werner Lemberg on Nov 14, 2011 and rotting on my TODO list ever since.
2018-04-08The assault on Dutschke happened in 1968.Theo Buehler
From Leah Neukirchen
2018-04-08tweak previous;Jason McIntyre