summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2020-08-14'!' does not need to be escaped;Jason McIntyre
confirmed by naddy and deraadt
2020-08-13new kstat(1) manual page, using info from dlg@, from his commit messages,Ingo Schwarze
and from partial code inspection; OK dlg@
2020-08-12ssh-keyscan(1): simplify conloop() with timercmp(3), timersub(3); ok djm@cheloha
2020-08-11Update awk to August 7, 2020 version.Todd C. Miller
2020-08-11let ssh_config(5)'s AddKeysToAgent keyword accept a time limit forDamien Miller
keys in addition to its current flag options. Time-limited keys will automatically be removed from ssh-agent after their expiry time has passed; ok markus@
2020-08-11let the "Confirm user presence for key ..." ssh-askpass notificationDamien Miller
respect $SSH_ASKPASS_REQUIRE; ok markus@
2020-08-11add -w so kstat can update and print stats at a specified wait interval.David Gwynne
2020-08-10sigh, i made the previous diff to small.David Gwynne
main needs to understand the kstat_tree type now, so move the declaration up.
2020-08-10factor out the printing of kstats. no functional change otherwise.David Gwynne
2020-08-10add the ability to filter which kstats are displayed.David Gwynne
kstats are identified by a "provider:instance:name:unit" tuple, where provider and name are strings, and instance and unit are integers. you can pass tuples as arguments to kstat to select them for display, eg, to see the rxq and txq stats for the first rings on an em0 interface, you can run `kstat em0:0:rxq:0 em0:0:txq:0`. this can be pretty tedious if you want to select a group of stats quickly though, so there's some wildcard and pattern matching support. firstly, empty fields in the tuple are wildcarded, eg, if you want to see all the stats that an mcx0 interface provides then run `kstat mcx0:::`. secondly, strings in a tuple (ie, the provider and name fields) are compared using fnmatch(3) so you can use shell like patterns to match fields. to expand the last example to all mcx interfaces, you can run `kstat mcx*:::`. lastly, you can pass a bare name to match on all kstats with that name. eg, to see the txq stats for all interfaces, just run `kstat txq`.
2020-08-09Convert openssl req option handling.Joel Sing
With input from inoguchi@ ok beck@ inoguchi@
2020-08-08Reorder SNMPv2-MIB to match order with original document.Martijn van Duren
Some minor touchups while here.
2020-08-08Reorganize SNMPv2-MIB so that all it's elements are together and in orderMartijn van Duren
of the original definition, for better comparability. While here rename snmpProxies to snmpProxys, since that's what it's called. Also add the zeroDotZero object.
2020-08-08Clean up smi_mibtree.Martijn van Duren
It checks on o_oid[0] for 0, which prevents us from adding the ccitt oid and its zeroDotZero subsidiary. Change this to check for o_name, which is always set, because mibtree is filled by MIBDECL().
2020-08-08Implement SNMP-USM-AES-MIB and SNMP-USM-HMAC-SHA2-MIBMartijn van Duren
2020-08-08Polish up SNMP-USER-BASED-SM-MIB and SNMP-FRAMEWORK-MIB.Martijn van Duren
This changes a couple of object names, but this makes them comply with the actual MIB definition.
2020-08-08Somewhere during working on UTF-8 support I thought it was a good idea toMartijn van Duren
use sysContact as a testcase, because it's readily available in snmpd, but forgetting it's actual textual convention as time went by, which is DisplayString (which is ASCII). Add support for the DisplayString textual convention, which is similar to having no textual convention, except that invalid bytes (value 128 and up) are printed as UTF-8 replacement characters, or question mark, depending on LC_CTYPE. Feedback and OK schwarze@
2020-08-08Document UTF-8 support in snmp.Martijn van Duren
Lots of feedback and OK schwarze@
2020-08-07Do not force line width to grid width because it may need to be largerNicholas Marriott
to accomodate a wide character. GitHub issue 2336.
2020-08-06Wow, the indentation is totally messed up, to the point where compilersTheo de Raadt
complain (actually useful this time) ok millert
2020-08-05Change searching to behave more like emacs and so that regex searchingNicholas Marriott
doesn't overlap when searching forwards.
2020-08-04Also ignore SIGQUIT so it can't be used to kill the client when locked.Nicholas Marriott
2020-08-03Add support for UTF-8 DISPLAY-HINTs with octet length. For now onlyMartijn van Duren
sysContact is supported with SnmpAdminString, but more shall follow soon(tm). Note that this will change output even in the C locale: Previously every unprintable byte would be tranformed to a '.', with this diff a valid UTF-8 multibyte or unprintable character will be squished into a single dot to give a better understanding of the intention of the original message. Invalid bytes will now be printed as question marks. Lot's of help and back and forth with schwarze@ who also kindly offered to walk away when I mentioned looking through MIB files for more objects to convert to this new code, which is understandable. OK schwarze@
2020-08-03Put the code handling \} into a new function roff_cond_checkend()Ingo Schwarze
and call that function not only from both places where copies existed - when processing text lines and when processing request/macro lines in conditional block scope - but also when closing a macro definition request, such that this construction works: .if n \{.de macroname macro content .. \} ignored arguments .macroname This fixes a bug reported by John Gardner <gardnerjohng at gmail dot com>. While here, avoid a confusing decrement of the line scope counter in roffnode_cleanscope() for conditional blocks that do not have line scope in the first place (no functional change for this part). Also improve validation of an internal invariant in roff_cblock() and polish some comments.
2020-08-03ensure that certificate extensions are lexically sorted. PreviouslyDamien Miller
if the user specified a custom extension then the everything would be in order except the custom ones. bz3198 ok dtucker markus
2020-08-03allow -A to explicitly enable agent forwarding in scp and sftp. TheDamien Miller
default remains to not forward an agent, even when ssh_config enables it. ok jmc dtucker markus
2020-08-03clang -Wimplicit-fallthrough does not recognise /* FALLTHROUGH */Theo de Raadt
comments, which is the style we currently use, and gives too many boring warnings. ok djm
2020-08-03Split some code that gives clang10 heartburnTheo de Raadt
ok millert
2020-08-02missing {} identified by clang10Theo de Raadt
ok martijn
2020-08-01update currency exchange rates;Jason McIntyre
2020-07-31Also compare username when checking for JumpHost loops. bz#3057, ok djm@Darren Tucker
2020-07-30Don't print extra newlines on error before awk starts parsing.Todd C. Miller
If awk prints an error message while when compile_time is still set to ERROR_PRINTING, don't try to print the context since there is none. This can happen due to a problem with, e.g., unknown command line options.
2020-07-30Update awk to July 30, 2020 version.Todd C. Miller
2020-07-30Improved handling of an unescaped '/' in a bracket expression.Todd C. Miller
2020-07-30Trim newline from ctime, from Thomas Adam.Nicholas Marriott
2020-07-27Wrap long lines s_server.cKinichiro Inoguchi
2020-07-27Add function prototype and move sub functions to bottomKinichiro Inoguchi
2020-07-27Remove space between '*' and pointer variable in s_server.cKinichiro Inoguchi
2020-07-27Remove 's_' prefix from member of s_server_config structKinichiro Inoguchi
2020-07-27Convert openssl(1) s_server option handlingKinichiro Inoguchi
ok and comments from jsing@
2020-07-27Add a -d option to display-message to set delay, from theonekeyg atNicholas Marriott
gmail dot com in GitHub issue 2322.
2020-07-26Add / as alias for g (grep)kn
Simpliy mdoc(7) markup for "n|# count" while here. Positive manual feedback jmc No objections millert
2020-07-24Add a hook when the pane title changed.Nicholas Marriott
2020-07-24Regular expression support in RS is an extension.Todd C. Miller
2020-07-23Change line counter from int to unsigned long long to reduce overflow.Martijn van Duren
In case unsigned long long is miraculously still too small add an additional overflow detection so we stop counting and add a marker to couter output. Input on earlier diff guenther@ OK millert
2020-07-23getline(3) does it's own memory allocation. No need to use an intermediateMartijn van Duren
buffer and copy it over to the final destination. Tweaks and OK millert@, schwarze@
2020-07-23Check all lists if option not found already.Nicholas Marriott
2020-07-22Avoid running out of memory with query-replace-regex ^Theo Buehler
Choosing ! (replace rest) never advances beyond the current line and keeps inserting the replacement test, and mg eventually runs out of memory. Patch from Mark Willson with minor stylistic tweaks. Looks good to Hiltjo Posthuma who would have preferred making forward replacing on empty lines work. Mark argued that this makes it behave consistently with the current behaviour when searching for ^ and the point at the beginning of a non-empty line in which case the cursor does not move either. Also tested by krw
2020-07-22Prevent mg segfault with query-replace-regex replacing ^Theo Buehler
Patch from Mark Willson with a minor tweak
2020-07-22Correct checks for window borders.Nicholas Marriott