summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2019-06-07Do not load the config file if the server is exiting because it failedNicholas Marriott
to start, otherwise commands like lsk which start the server again can end up looping infinitely. Also make the first client exit correctly. Problem reported by Wael M Nasreddine.
2019-06-07Typo and spelling fixes in comments and error messages. Patch fromDarren Tucker
knweiss at gmail.com via -portable.
2019-06-07Amend showcpos() to show more information about how mg is operating.Mark Lumsden
The additions help while developing mg by not having to go into gdb to see somethings mg believes about itself. The extra data shown could be removed in future, but it is benign so perhaps it could stay. Also, do not fake a '\n' on the end of buffer. It is confusing. However do not change the lie about '\n' being on the end of every line within the buffer. Hopefully, one day, that will no longer be a lie.
2019-06-07tidy up the formatting of gendsa synopsis a little;Jason McIntyre
2019-06-07Check for user@host when parsing sftp target. This allows user@[1.2.3.4]Darren Tucker
to work without a path in addition to with one. bz#2999, ok djm@
2019-06-07Convert openssl(1) gendsa to the newer style of option handlingKinichiro Inoguchi
- Adapt openssl(1) gendsa command to new option handling. - Add lacking ciphers and passout description in openssl.1 manpage. - Describe paramfile as argument in openssl.1 manpage. ok bcook@
2019-06-06tweak previous;Jason McIntyre
2019-06-06Replace calls to ssh_malloc_init() by a static init of malloc_options.Otto Moerbeek
Prepares for changes in the way malloc is initialized. ok guenther@ dtucker@
2019-06-05Add a -v flag to source-file to show the commands and line numbers.Nicholas Marriott
2019-06-05Need to increment the argument to skip the prefix earlier, fixesNicholas Marriott
repeated incremental search in copy mode, reported by Kaushal Modi in GitHub issue 1780.
2019-06-03Explicitly state that the cases in the inner switch in term_fill()Ingo Schwarze
are exhaustive. While there is no bug, being explicit has no downside is is potentially safer for the future. Michal Nowak <mnowak at startmail dot com> reported that gcc 4.4.4 and 7.4.0 on illumos throw -Wuninitialized false positives.
2019-06-03Initialize the local variable "lastln" in mparse_buf_r().Ingo Schwarze
While there is no bug, it logically makes sense given the meaning of the variable that lastln is NULL as long as firstln is NULL. Michal Nowak <mnowak at startmail dot com> reported that gcc 4.4.4 and 7.4.0 on illumos throw -Wuninitialized false positives.
2019-06-03Initialize the local variable "act" in print_mdoc_node().Ingo Schwarze
While there is no bug, it helps clarity, and it is also safer in this particular code because in case a bug gets introduced later, accessing a NULL pointer is less dangerous than accessing an uninitialized pointer. Michal Nowak <mnowak at startmail dot com> reported that gcc 4.4.4 and 7.4.0 on illumos throw -Wuninitialized false positives.
2019-06-03Add new-session -X and attach-session -x to send SIGHUP to parent whenNicholas Marriott
detaching (like detach-client -P). From Colin Watson in GitHub issue 1773.
2019-06-03This diff gives the commands beginning-of-buffer and end-of-buffer theMark Lumsden
ability to take a numeric argument and move n/10th of the way from the top or bottom of the current buffer respectively. A universal argument of higher than 9 puts the cursor back to the end/start of buffer.
2019-06-03Don't close the socket in rsync_socket() itself but after calling it.Christian Weisgerber
Fixes a corner case where the socket was closed twice, reported by Hiltjo Posthuma. ok deraadt@
2019-06-02KNF and sneaky whitespacesTheo de Raadt
2019-06-02Use a simple hash table to look up blocks by the fast-hash. Also useFlorian Obser
a rolling computation for the fast-hash.OB With this openrsync is on par with gpl rsync for file updates. From kristaps
2019-06-02Support prefers-color-scheme: dark.Ingo Schwarze
The :visited rule was contributed by <Armin at Besirovic dot com>. Guidance and OK tj@.
2019-06-02have_md is initialized at startup, don't need to do it again laterTheo de Raadt
from Hiltjo Posthuma
2019-06-02spelling; from Hiltjo PosthumaTheo de Raadt
2019-06-02yacc(1) copies its union so it is not a good place to storeNicholas Marriott
TAILQ_HEADs. Allocate them instead. Found from a problem reported by sthen@.
2019-06-02In manpages, don't escape apostrophes as \'; it's rarely what you want.Anthony J. Bentley
Most of these are correct just as '. A few benefit from Ql or \(aq. But if in doubt, just use '.
2019-06-02Fix incorrect character escape.Anthony J. Bentley
From Stephen Gregoratto; thanks!
2019-06-01If only one of -x or -y is given, use the calculated size for theNicholas Marriott
other. Pointed out by Ben Boeckel.
2019-06-01update currency exchange rates;Jason McIntyre
2019-06-01Need stdlib.h, from Ben Boeckel.Nicholas Marriott
2019-05-31Fix warnings, from Ben Boeckel.Nicholas Marriott
2019-05-31Allow % strings that are all numbers or %s, and fix a double free. BothNicholas Marriott
reported by George Nachman, GitHub issues 1765 and 1766.
2019-05-31fix ssh-keysign fd handling problem introduced in r1.304 caused by a typoDamien Miller
(STDIN_FILENO vs STDERR_FILENO)
2019-05-30Remove a leftover abort and some fixes from cppcheck.Nicholas Marriott
2019-05-30No longer need to reduce line number by one.Nicholas Marriott
2019-05-30I had hoped that non-xenl terminals had died out, at least in fairlyNicholas Marriott
modern OSs, but no - DragonFly BSD's console returns to haunt us. Fix it at least somewhat. GitHub issue 1763.
2019-05-29Use VIS_CSTYLE for the arguments and add the missing escapes it canNicholas Marriott
generate to the parser.
2019-05-29The line number needs to be updated only after the \n is processed byNicholas Marriott
the parser, so store a flag and update it next time around. Also each new line needs its own shared data.
2019-05-29Support \ooo escapes, from Avi Halachmi.Nicholas Marriott
2019-05-29Make the standard output messages of both methods of changing a keyMark Lumsden
pair's comments (using -c and -C) more applicable to both methods. ok and suggestions djm@ dtucker@
2019-05-28Redraw status line if size changes, GitHub issue 1762. Also fix lengthNicholas Marriott
of target buffer when pasting into status line.
2019-05-28Do not read past the end of the argument string if it is empty.Nicholas Marriott
2019-05-28unintialized fd passed to close(), found by hiltjo posthumaTheo de Raadt
2019-05-28Exit 1 correctly if source-file fails.Nicholas Marriott
2019-05-28Allow source-file to take multiple arguments.Nicholas Marriott
2019-05-28Change the default right click pane to open the menu if not in a modeNicholas Marriott
and no application mouse.
2019-05-28Add key bindings to open the window and pane menus (C-m and M-m for now).Nicholas Marriott
2019-05-28Allow menu items to be disabled by putting a - at the start of theirNicholas Marriott
name, rather than just including #[dim] which still allowed them to be chosen.
2019-05-28Change display-menu from taking a single string to a set of arguments,Nicholas Marriott
which is much easier to work with. Based on a diff from Avi Halachmi.
2019-05-27Clarify newlines inside {} a little.Nicholas Marriott
2019-05-27Go less crazy with horizontal separators on default menus.Nicholas Marriott
2019-05-27For "gunzip -N", only use the basename of the stored path.Todd C. Miller
Fixes a directory traversal bug when the stored name includes a directory component. Both GNU gzip and our gzip store the basename of the path when compressing but a malicious .gz file could contain an arbitrary path. Problem found by elvis alien. OK deraadt@
2019-05-27Fix crash when killing the current window, reported by Jesus RafaelNicholas Marriott
Sanchez in GitHub issue 1760.