IABSD.fr/src/usr.bin

Branch :


Log

Author Commit Date CI Message
5fcfc6ff 2020-08-17 18:41:23 -F requires at least 5 columns for folding, while a tab at start of line is 8 columns. This causes an infinite loop in the folding logic. Fix this by implementing an escape hatch so that only a single fold can occur. This does mean that a tab with a -F smaller or equal to 8 will always print the newline escape backslash in the 8th column. Bug reported by phillbush <at> cock <dot> li Minor tweak and OK deraadt@
a8dc0ba1 2020-08-17 18:12:12 honor /etc/nologin by unveiled it ok deraadt@
b1b24323 2020-08-14 17:44:53 '!' does not need to be escaped; confirmed by naddy and deraadt
a09091e5 2020-08-13 12:37:16 new kstat(1) manual page, using info from dlg@, from his commit messages, and from partial code inspection; OK dlg@
dcf22d41 2020-08-12 01:23:45 ssh-keyscan(1): simplify conloop() with timercmp(3), timersub(3); ok djm@
60613915 2020-08-11 16:57:05 Update awk to August 7, 2020 version.
210ec77e 2020-08-11 09:49:57 let ssh_config(5)'s AddKeysToAgent keyword accept a time limit for 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@
272d1ebd 2020-08-11 09:45:54 let the "Confirm user presence for key ..." ssh-askpass notification respect $SSH_ASKPASS_REQUIRE; ok markus@
6b04bb45 2020-08-11 01:07:47 add -w so kstat can update and print stats at a specified wait interval.
81e355e4 2020-08-10 06:51:40 sigh, i made the previous diff to small. main needs to understand the kstat_tree type now, so move the declaration up.
62fc0d78 2020-08-10 06:39:52 factor out the printing of kstats. no functional change otherwise.
59ead937 2020-08-10 01:13:28 add the ability to filter which kstats are displayed. 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`.
e451a623 2020-08-09 16:38:24 Convert openssl req option handling. With input from inoguchi@ ok beck@ inoguchi@
97da2ad2 2020-08-08 14:01:31 Reorder SNMPv2-MIB to match order with original document. Some minor touchups while here.
2e6355c0 2020-08-08 13:13:19 Reorganize SNMPv2-MIB so that all it's elements are together and in order 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.
6972fbe4 2020-08-08 13:02:54 Clean up smi_mibtree. 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().
e48b1d2e 2020-08-08 08:57:29 Implement SNMP-USM-AES-MIB and SNMP-USM-HMAC-SHA2-MIB
16c279e6 2020-08-08 08:37:57 Polish up SNMP-USER-BASED-SM-MIB and SNMP-FRAMEWORK-MIB. This changes a couple of object names, but this makes them comply with the actual MIB definition.
27b4df32 2020-08-08 07:18:08 Somewhere during working on UTF-8 support I thought it was a good idea to 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@
f35e0348 2020-08-08 07:11:47 Document UTF-8 support in snmp. Lots of feedback and OK schwarze@
14b12344 2020-08-07 07:02:57 Do not force line width to grid width because it may need to be larger to accomodate a wide character. GitHub issue 2336.
1e0c6b38 2020-08-06 17:23:29 Wow, the indentation is totally messed up, to the point where compilers complain (actually useful this time) ok millert
bbbc8bd0 2020-08-05 09:11:09 Change searching to behave more like emacs and so that regex searching doesn't overlap when searching forwards.
eb5d7a07 2020-08-04 08:50:01 Also ignore SIGQUIT so it can't be used to kill the client when locked.
1248928a 2020-08-03 14:45:54 Add support for UTF-8 DISPLAY-HINTs with octet length. For now only 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@
fd9d9245 2020-08-03 10:52:38 Put the code handling \} into a new function roff_cond_checkend() 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.
b7ec8c74 2020-08-03 02:53:51 ensure that certificate extensions are lexically sorted. Previously if the user specified a custom extension then the everything would be in order except the custom ones. bz3198 ok dtucker markus
dba54a79 2020-08-03 02:43:41 allow -A to explicitly enable agent forwarding in scp and sftp. The default remains to not forward an agent, even when ssh_config enables it. ok jmc dtucker markus
6c0867c1 2020-08-03 02:42:49 clang -Wimplicit-fallthrough does not recognise /* FALLTHROUGH */ comments, which is the style we currently use, and gives too many boring warnings. ok djm
e85eb45e 2020-08-03 01:08:37 Split some code that gives clang10 heartburn ok millert
f2fa7a92 2020-08-02 20:14:10 missing {} identified by clang10 ok martijn
1710b8e4 2020-08-01 06:19:59 update currency exchange rates;
b767a9ad 2020-07-31 04:19:37 Also compare username when checking for JumpHost loops. bz#3057, ok djm@
149ad3e3 2020-07-30 17:46:54 Don't print extra newlines on error before awk starts parsing. 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.
5df2889f 2020-07-30 17:45:44 Update awk to July 30, 2020 version.
0a287e03 2020-07-30 17:11:10 Improved handling of an unescaped '/' in a bracket expression.
140dce51 2020-07-30 07:32:52 Trim newline from ctime, from Thomas Adam.
4da86b84 2020-07-27 13:46:48 Wrap long lines s_server.c
72a107cf 2020-07-27 13:06:13 Add function prototype and move sub functions to bottom
f94a2c25 2020-07-27 12:29:51 Remove space between '*' and pointer variable in s_server.c
0e15fe22 2020-07-27 12:19:51 Remove 's_' prefix from member of s_server_config struct
5a233072 2020-07-27 12:09:14 Convert openssl(1) s_server option handling ok and comments from jsing@
247fdabf 2020-07-27 08:03:10 Add a -d option to display-message to set delay, from theonekeyg at gmail dot com in GitHub issue 2322.
b1ef1ce0 2020-07-26 21:59:16 Add / as alias for g (grep) Simpliy mdoc(7) markup for "n|# count" while here. Positive manual feedback jmc No objections millert
073a2214 2020-07-24 07:05:37 Add a hook when the pane title changed.
ef301d81 2020-07-24 01:57:06 Regular expression support in RS is an extension.
483368fb 2020-07-23 20:19:27 Change line counter from int to unsigned long long to reduce overflow. 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
2c40dbd1 2020-07-23 20:13:01 getline(3) does it's own memory allocation. No need to use an intermediate buffer and copy it over to the final destination. Tweaks and OK millert@, schwarze@
5784a26a 2020-07-23 14:17:56 Check all lists if option not found already.
8a6c6275 2020-07-22 13:29:05 Avoid running out of memory with query-replace-regex ^ 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
82bc5afb 2020-07-22 13:22:53 Prevent mg segfault with query-replace-regex replacing ^ Patch from Mark Willson with a minor tweak
85b81c84 2020-07-22 06:21:46 Correct checks for window borders.
90f584c6 2020-07-21 15:08:48 undocumented options -O outfilename and -O tagfilename to support regression testing without a tty; no user visible change intended
6523adaf 2020-07-21 05:24:33 Fix show-buffer when run from inside tmux, GitHub issue 2314.
95944651 2020-07-20 18:57:19 If closefile() is called on std{in,out,err}, freopen() /dev/null instead. Otherwise, awk will continue trying to perform I/O on a closed stdio stream. This appears to be consistent with how gawk behaves. OK tim@
8bde1373 2020-07-20 18:55:15 In closeall(), skip stdin and flush std{err,out} instead of closing. Otherwise awk could fclose(stdin) twice (it may appear more than once) and closing stderr means awk cannot report errors closing other streams. OK tim@
e886970e 2020-07-20 14:52:12 as jmc@ points out, i missed a few instances of .Xr more 1
c9771691 2020-07-20 14:25:22 Switch the default pager from "more -s" to "less". POSIX explicitly allows using a different default pager if that is documented. The pager provided in the OpenBSD base system is less(1). It can merely be called as more(1) for compatibility. Our man(1) implementation uses less(1) features that traditional more(1) did not provide, in particular tagging. Besides, as noted by deraadt@, the user interface of less(1) is slightly more refined and preferable over the user inferface of more(1). This switch was originally suggested by Ian Ropers. As explained by jmc@ and deraadt@, the -s flag was added a very long time ago when an antique version of groff(1) had an annoying bug in terminal output that would randomly display blank lines in the middle of pages. Clearly, -s has no longer been needed for many years, so drop it from the default pager invocation. OK deraadt@ jmc@ martijn@ job@
d3a07ef2 2020-07-19 13:19:25 Delete support for LC_MESSAGES which we shall never implement. This nicely simplifies the code, deleting three header inclusions and calls to various complicated library functions. Dead code reported by Jan Stary <hans at stare dot cz>. Garbage collect pointless (void) casts and a .Tn macro while here. Tweaks and OK martijn@, OK millert@ and kn@ on an earlier version.
c2008cb8 2020-07-19 11:13:35 Don't add server.device knob if there's only one audio device
6a564c82 2020-07-19 11:07:14 Fix initial alternate device number The initial alternate device number was set to 1 (instead of -1), causing device number 1 to be skipped the first time sndiod is used.
6a636119 2020-07-18 21:44:17 oops - the description of -i had a similarly incorrect text as -I concerning use of -f; remove that too; pointed out by guenther
c95f7378 2020-07-18 19:12:52 the text describing the effect of -f on -I is apparently wrong - no such code was ever added; the text was added 21 years ago when ip6 support was added; marfabastewart noticed it, and guenther tracked down the commit responsible; this commit removes that text;
efa5b6a3 2020-07-18 02:53:47 Properly escape a backslash. Found by CompCert which notes that \E is not a valid escape sequence. ok nicm@
6d855085 2020-07-17 07:09:24 Add %k to the TOKENs for Match Exec for consistency with the other keywords that recently got %k.
bffa7c61 2020-07-17 05:59:05 fix macro slip in previous;
e8fc7e79 2020-07-17 03:51:32 log error message for process_write() write failures
6e617869 2020-07-17 03:43:42 Add a '%k' TOKEN that expands to the effective HostKey of the destination. This allows, eg, keeping host keys in individual files using "UserKnownHostsFile ~/.ssh/known_hosts.d/%k". bz#1654, ok djm@, jmc@ (man page bits)
f02ae39d 2020-07-17 03:23:10 Add %-TOKEN, environment variable and tilde expansion to UserKnownHostsFile, allowing the file to be automagically split up in the configuration (eg bz#1654). ok djm@, man page parts jmc@
0833c9ba 2020-07-16 17:47:41 add -T option to make time related system calls more prominent. ok deraadt
e8b59d3c 2020-07-15 11:03:17 Renumber after killing windows for choose-tree.
5cafaabf 2020-07-15 10:09:54 Handle padding cells correctly when searching, GitHub issue 2301.
ff0c9233 2020-07-15 07:50:46 - Add [-a rounds] in ssh-keygen man page and usage() - Reorder parameters list in the first usage() case - Sentence rewording ok dtucker@ jmc@ noticed usage() missed -a flag too
e8afce5b 2020-07-15 07:13:56 POWE9 CPUs provide an energy sensor that accumulates the emount of energy used by the processor chip. Although we have a SENSOR_WATTHOUR sensor type its units are not really suitable for this sensor. So add a SENSOR_ENERGY type that uses micro Joules as its unit. ok deraadt@
1751a375 2020-07-15 05:40:05 start sentence with capital letter;
3a1e91d3 2020-07-15 04:27:34 Add default for number of rounds (-a). ok djm@
0ae95be1 2020-07-14 23:57:01 allow some additional control over the use of ssh-askpass via $SSH_ASKPASS_REQUIRE, including force-enable/disable. bz#69 ok markus@
af806480 2020-07-14 19:08:30 Convert option handling for openssl(1) verify. ok inoguchi@, tb@
b38ea368 2020-07-14 09:52:46 Remove hyphen
53fa2216 2020-07-14 09:49:42 Add single space between pem and ...
f354b939 2020-07-14 09:46:17 Add manual for openssl(1) certhash ok jmc@
b7fdcd16 2020-07-13 14:03:52 Cast to uschar when storing a char in an int that will be used as an index. Fixed as crash reported by Jan Stary when the input char has the high bit set and FS is a regex.
9beba1fe 2020-07-13 10:10:10 Do not dereference NULL environment variable value, GitHub issue 2304.
c63a98fb 2020-07-13 07:04:17 Clarify /tmp permissions and use, GitHub issue 2300.
a2111520 2020-07-10 12:25:57 Clean up s_client.c - Remove space between '*' and pointer variable. - Add function prototype. - Move callback function to bottom. - Move typedef struct to up.
5042ef37 2020-07-10 12:05:52 Change variable bio_c_out from global to local ok tb@
6369f9f8 2020-07-09 14:09:19 Wrap long lines and put space in front of label in s_client.c
6dcdcd8f 2020-07-09 13:07:46 Remove c_ prefix from s_client_config member
10281ad2 2020-07-09 12:48:19 Convert openssl(1) s_client option handling suggestions and ok beck@ jsing@ tb@
d4d64747 2020-07-09 10:42:24 Avoid NULL deref in regexec when searching for empty lines. Report & tweak from Hiltjo Posthuma
09dd33a6 2020-07-08 16:05:27 Clarify that csh's -f flag is not just about .cshrc. We don't need to be too specific about this in su(1), leave the details for csh(1). OK jca@
2c7f03ce 2020-07-08 15:36:35 Simplify csh vs other shells setup code ok millert@
3b2e3894 2020-07-08 10:35:06 Teach su -l -f how to start a regular shell for non-csh shells su -l does nice things like reset the environment and change the home directory, but it also always starts the user's shell as a login shell (argv[0] == '-'). This is a problem for su -l consumers like rc.d, where e.g. /root/.profile is read by the shell before starting a daemon as root. This tends to blow up if the admin introduces side effects to /root/.profile (or /etc/profile). csh supports an -f flag to skip reading .cshrc and .login, and su already has special support for it. Similarly, teach su -l -f how to start a regular shell (not a login shell) for non-csh shells. Discussion started by robert@ during p2k19 and revived by ajacoutot@, help and ok kn@ millert@
0761eee7 2020-07-07 02:47:21 correct recently broken comments
277ea09d 2020-07-06 17:11:29 in 2014 I added this annotation: /* XXX floating point printf in signal handler */ our snprintf is reentrant safe except for floating point. Break the double apart into integer.integer notation, to avoid that. ok kettenis millert
75fa0b37 2020-07-06 16:27:59 Use mnemonic KERN_PROC_ALL not literal zero No object change.
9764651b 2020-07-06 10:07:02 Do not eliminate redundant clears, the code is wrong and doing it correctly wouldn't be worth it. GitHub issue 2298.
d3c4e94b 2020-07-06 09:14:20 Add a way for control mode clients to subscribe to a format and be notified of changes rather than having to poll. GitHub issue 2242.
7dbc9071 2020-07-06 07:27:39 Always send xterm-style keys for M-Left and M-Right. GitHub issue 2296.
ab45bcde 2020-07-06 07:09:50 add kstat(8), the userland side of kstat(4). this currently just dumps all the kstats it can find and prints out their current values. in the future i want to be able to pass what kstats im intersted in as arguments, and tell it to poll stats and show rates instead of current values when appropriate.