summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2019-08-01xterm 348 now disables margins when resized, so send DECLRMM again.Nicholas Marriott
2019-08-01Add -N to capture-pane to preserve trailing spaces, from Leon Winter.Nicholas Marriott
2019-08-01Remove check for same size - size has already been changed so thisNicholas Marriott
breaks reflow.
2019-07-30Reorder some text in the windows & panes section and add some betterNicholas Marriott
explanation of modes.
2019-07-30let sshbuf_find/cmp take a void* for the search/comparisonDamien Miller
argument, instead of a u_char*. Saves callers needing to cast.
2019-07-29Make proxy auth work with http 1.1 speaking webservers.Sebastian Benoit
Diff from Alexander Koeppe format_c -AT- online -DOT- de, thanks. ok deraadt@
2019-07-29Moving variables into struct in openssl(1) dgstKinichiro Inoguchi
First step to adapt openssl(1) dgst command to new option handling. There is no functional changes by this diff, and just moving variables into dgst_config struct. ok bcook@
2019-07-28Simplification, no functional change:Ingo Schwarze
Delete the "argc" argument from fs_search() which is now always 1, and move error reporting to the main() program where it is more logically placed and easier to see.
2019-07-28There is no point in pledge(2)ing literally the same list twice,Ingo Schwarze
so delete the second copy. No functional change.
2019-07-28In man(1) mode, do the search for each name independently, andIngo Schwarze
show the results in the order of the command line arguments. Implemented by separating the code for man(1) and apropos(1) in the main() program. Surprisingly, the number of lines of code remains unchanged. Issue reported by deraadt@, additional input from millert@.
2019-07-28Improve structure, no functional change:Ingo Schwarze
Unify code to process one single input file and move it into a dedicated new function.
2019-07-2816 channels is not enough to handle all common uaudio(4) devices, soAlexandre Ratchov
crank the maximum channels number to 64.
2019-07-27Move two more output state variables into the new struct outstate.Ingo Schwarze
Also, move setting of tag_files.tagname into tag_init(). No functional change.
2019-07-26Cleanup, no functional change:Ingo Schwarze
For clarity, stop storing the same information (in this case, -O settings) in two structs. Give the local struct in main.c a more descriptive name (output state).
2019-07-26Structural cleanup, no functional change:Ingo Schwarze
Mixing parser and formatter state in the same struct was a bad idea, so pull the parser state and configuration out of it. This makes sure output options are not passed into parser functions and parser options are not passed into output functions. While here, add comments to the important local variables in main().
2019-07-26Change "lost server" message to "server exited unexpectedly", from NealNicholas Marriott
McBurnett in GitHub issue 1857.
2019-07-26Structural cleanup, no functional change:Ingo Schwarze
Move process group management out of main() into its own function because it has its own, self-contained logic and its own local variables.
2019-07-26Code clean up openssl(1) pkcs12Kinichiro Inoguchi
- Add a space before 'export_end:' - Remove space after '*' - Wrap lines by 80 columns
2019-07-26Replace cross-references to sigvec(3) with sigaction(2).Todd C. Miller
OK guenther@
2019-07-26Remove unnecessary NULL checks before free in openssl(1) pkcs12Kinichiro Inoguchi
ok bcook@ tb@
2019-07-25convert flag listing into a .BlTheo de Raadt
2019-07-25According to our manual page and to POSIX, $set defaults to NL_SETD.Ingo Schwarze
Bug reported by Marcel Logen <333200007110-0201 at ybtra dot de>. While here, remove the misleading initialization of msgid which is not a state variable. OK millert@ deraadt@
2019-07-25Show unveil(2) violators in lastcomm(1) output and daily mail.Alexander Bluhm
input Janne Johansson, schwarze@; OK deraadt@ millert@
2019-07-25remove superfluous commentBrent Cook
2019-07-25zero tmpkeyiv buffer after use when encryptingBrent Cook
from Steven Roberts
2019-07-24Mark pane status line jobs with FORMAT_STATUS also so it redraws whenNicholas Marriott
they finish, GitHub issue 1852.
2019-07-24Make sure that -n overrides -t even when -n precedes -t, like itIngo Schwarze
does in FreeBSD and in NetBSD, and fully document that behaviour. Input, feedback, and OK jca@.
2019-07-24Capitalize cipher name and mode in help message as sync with pkcs12Kinichiro Inoguchi
2019-07-24Convert openssl(1) pkcs12 to the newer style of option handlingKinichiro Inoguchi
Adapt openssl(1) pkcs12 command to new option handling. Added pkcs12_options struct, and replaced for-if-strcmp handling with options_parse(). ok and comments jsing@
2019-07-24When using a combination of a Yubikey+GnuPG+remote forwarding the gpg-agentRicardo Mestre
(and options ControlMaster+RemoteForward in ssh_config(5)) then the codepath taken will call mux_client_request_session -> mm_send_fd -> sendmsg(2). Since sendmsg(2) is not allowed in that codepath then pledge(2) kills the process. The solution is to add "sendfd" to pledge(2), which is not too bad considering a little bit later we reduce pledge(2) to only "stdio proc tty" in that codepath. Problem reported and diff provided by Timothy Brown <tbrown at freeshell.org> OK deraadt@
2019-07-23Fix typo in CASignatureAlgorithms wherein what should be a comma is a dot.Darren Tucker
Patch from hnj2 via github pr#141.
2019-07-23tagging support for .TP and .TQ; try e.g. man -O tag=commit cvsIngo Schwarze
2019-07-23Moving variables into struct in openssl(1) pkcs12Kinichiro Inoguchi
First step to adapt openssl(1) pkcs12 command to new option handling. There is no functional changes by this diff, and just moving variables into pkcs12_config struct. I still keep long lines more than 80 for this review to minimize diffs. ok jsing@ tb@
2019-07-22In secure mode (-S), skip sending mail when executing the :pre[serve]Ingo Schwarze
command or when dying from SIGTERM. This way, creating the recovery file works again without re-adding "proc exec" to the pledge(2). As reported by Jesper Wallin <jesper at ifconfig dot se>, this got broken by common/main.c rev. 1.29 (Nov 19, 2015). The general direction of the fix was suggested by brynet@. OK brynet@ and no opposition when shown on tech@
2019-07-22Slowly start implementing tagging support for man(7) pages, evenIngo Schwarze
though it is obvious that this can never become as good as for mdoc(7) pages. As a first step, tag alphabetic arguments of .IP macros, which are often used for lists of options and keywords. Try "man -O tag=g as" to get the point. Thanks to Leah Neukirchen for recently reminding me that exploring how much can be done in this respect may be worthwhile: it is likely to slightly improve usability while adding only small amounts of relatively straightforward code.
2019-07-21While -n is now the default, it's been useful since 1996. Keep it for compat.Jeremie Courreges-Anglas
Agreement from schwarze@ (who proposed a thorough but longer diff) and millert@ ok tb@ kn@ cheloha@
2019-07-21Amend comment: entering the root password won't unlock the terminalJeremie Courreges-Anglas
Mention -p (user password) while here.
2019-07-20Correct misleading description of -S;Ingo Schwarze
problem reported by George Brown <321 dot george at gmail dot com> on tech@.
2019-07-20Missed a free.Mark Lumsden
2019-07-20Move a bit of code to where it is called only if needed.Mark Lumsden
2019-07-19#define a handful of constant strings to reduce the diff to -portable;Ingo Schwarze
now, the diff is about -30 +150 lines (about 0.4%)
2019-07-19If no tags were generated at all, unlink(2) the empty tags file asIngo Schwarze
soon the condition can be detected and do not pass it to less(1). This may happen for man(7) pages, for preformatted pages, and for very simple pages like true(1). The main benefit is that :t inside less(1) yields the clearer diagnostic message "No tags file" rather than the mildly confusing "No such tag in tags file": the latter might encourage further, futile attempts to jump to other tags. Improvement suggested by Leah Neukirchen <leah at vuxu dot org> from The Void.
2019-07-19lock(1): remove default timeoutcheloha
It makes little sense from a security standpoint to unlock the terminal and expose the user's session after fifteen minutes by default. Default behavior is now to reserve the terminal forever. Add instructions to the manpage to help the user employ the -t timeout option more safely. Manpage greatly improved by jmc@; bug(s) caught by millert@; with input from claudio@. ok millert@
2019-07-19Previously I left the ')' on the end of a list to indicate the end.Mark Lumsden
Just to get things working. Best get rid of that nonsense sooner rather than later.
2019-07-19Make systat flushing output after a page display in rawmode (flags -b or -B)solene
ok millert@ kurt@ code suggested by otto@
2019-07-19Add a few vi(1) key aliases, from D Ben Knoble.Nicholas Marriott
2019-07-19More man page fixes from lacygoill at lacygoill dot me, GitHub issueNicholas Marriott
1805.
2019-07-19Accept the verbose flag when searching for host keys in known hostsDamien Miller
(i.e. "ssh-keygen -vF host") to print the matching host's random- art signature too. bz#3003 "amusing, pretty" deraadt@
2019-07-18The 'list' diff I committed this morning, was missing a couple ofMark Lumsden
calls to a clean-up variable function.
2019-07-18Delete documentation of --max-count, which is merely an alias ofIngo Schwarze
the documented -m. As a rule, we only document long options when users can't avoid them because they lack a short version. As suggested by tedu@, as an exception, leave --context documented because -C is awkward in so far as it takes an optional option argument, which is fragile and error-prone and hence generally discouraged, including by POSIX. Two years ago, kettenis@, deraadt@, and tedu@ all agreed that this is what should be done, and jmc@ was happy to accept the direction, but somehow everybody forgot to commit.