summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2022-12-26tweak the -f text; ok florianJason McIntyre
2022-12-26spelling fix; from paul tagliamonteJason McIntyre
ok tb
2022-12-26spelling fixes; from paul tagliamonteJason McIntyre
ok florian
2022-12-26spelling fixes; from paul tagliamonteJason McIntyre
amendments to his diff are noted on tech
2022-12-26Implement support for personal units library.Florian Obser
With -f one could read an alternative library but it would replace the standard units library, not add to it. Allow passing -f multiple times to read all files and merge them together. Passing the empty string, i.e. -f '' reads the default units library. This is implemented in at least FreeBSD and Linux. OK miod
2022-12-26spelling fixes from paul tagliamonte;Jason McIntyre
part of a larger diff: i'm committing this separately as i changed statuses to status;
2022-12-26revert previous: just as i get to replying, i find sthen's note. this partJason McIntyre
of the diff is not for me.
2022-12-26emited -> emitted;Jason McIntyre
from paul tagliamonte
2022-12-23remove "-p protocol" from the -r synopsis: it no longer makes senseJason McIntyre
pointed out by pguemther ok pguenther kn claudio
2022-12-22Denote multiple arguments with 'arg ...' not 'args'Klemens Nanni
A few programs used the plural in their synopsis which doesn't read as clear as the obvious triple-dot notation. mdoc(7) .Ar defaults to "file ..." if no arguments are given and consistent use of 'arg ...' matches that behaviour. Cleanup a few markups of the same argument so the text keeps reading naturally; omit unhelpful parts like 'if optional arguments are given, they are passed along' for tools like time(1) and timeout(1) that obviously execute commands with whatever arguments where given -- just like doas(1) which doesn't mention arguments in its DESCRIPTION in the first place. For expr(1) the difference between 'expressions' and 'expression ...' is crucial, as arguments must be passed as individual words. Feedback millert jmc schwarze deraadt OK jmc
2022-12-22move the flag mappings displayed by "route show" from netstat(1) to route(8):Jason McIntyre
diff from paul tagliamonte, who was surprised to find them not documented in route(8); claudio agreed placement was not ideal; deraadt confirmed users better served by route(8) than netstat(1); i've tweaked some of the spacing and text so it displays better, and removed some macros incorrectly associated with the "nameserver" list item, which was messing up the formatting. should display better now
2022-12-20Add argument support for msyscall, pledge, unveil, __realpath,Philip Guenther
ypconnect, and __tmpfd. Reorder several other syscalls to match the order in syscalls.master ok deraadt@
2022-12-20If we don't have usecommonopt for our application we shouldn't check theMartijn van Duren
default values for snmp protocol level stuff. Makes snmp mibtree work again which got broken since the defaults changed back in 2021. Reported by Matthias Pitzl (pitzl <at> genua <dot> de) Hint to use usecommonopt and OK gerhard@
2022-12-19Improve reporting of waitid(2)'s idtype/id and options argumentsPhilip Guenther
Add mimmutable(2) to report like munmap(2)
2022-12-19Allow send-keys without a client again, reported by Stefan Hagen.Nicholas Marriott
2022-12-18nc: skip connection info on failed or skipped udptest()Theo Buehler
In udp mode, nc would always print that the connected succeeded independently of whether that was actually the case. Don't do that. idea/ok mpf
2022-12-18nc: do not test the connection in non-interactive modeTheo Buehler
The connection test writes four X to the socket, which corrupts data that we may want to pipe into nc. So don't do that if stdin is not a tty but still do it in scan mode, this is needed according to chris. based on a diff by and ok mpf
2022-12-18nc: clean up and simplify connection_infO()Theo Buehler
ok mpf as part of a larger diff
2022-12-18nc: pass protocol name to connection_info()Theo Buehler
Avoids repeated use of ternary operator on globals.
2022-12-18nc: factor printing of connection info into a functionTheo Buehler
This simply moves a chunk of code in this spaghetti mess into its own function with minimal changes. idea from a diff by mpf
2022-12-16top(1): always recount number of online CPUsScott Soule Cheloha
If hw.smt is toggled while top(1) is running in "combined" mode the CPU count on the CPU state line is incorrect. We always need to recount the number of online CPUs.
2022-12-16Do not escape tabs in output (iTerm2 needs them). GitHub issue 3414.Nicholas Marriott
2022-12-16Make U+FE0F VARIATION SELECTOR-16 change the width from 1 to 2. GitHubNicholas Marriott
issue 3409.
2022-12-16Add send-keys -K to handle keys directly as if typed (so look up in keyNicholas Marriott
table). GitHub issue 3361.
2022-12-16Mention that scp uses the SFTP protocol and remove reference toDamien Miller
legacy flag. Spotted by, feedback and ok jmc@
2022-12-16Clear signal mask early in main(); sshd may have been started withDamien Miller
one or more signals masked (sigprocmask(2) is not cleared on fork/exec) and this could interfere with various things, e.g. the login grace timer. Execution environments that fail to clear the signal mask before running sshd are clearly broken, but apparently they do exist. Reported by Sreedhar Balasubramanian; ok dtucker@
2022-12-16add -X to usage();Jason McIntyre
2022-12-16add a -X option to both scp(1) and sftp(1) to allow control overDamien Miller
some SFTP protocol knobs: the copy buffer length and the number of inflight requests, both of which are used during upload/download. Previously these could be controlled in sftp(1) using the -b/-R options. This makes them available in both SFTP protocol clients using the same option character sequence. ok dtucker@
2022-12-15The idiomatic way of coping with signed char vs unsigned char (whichTheo de Raadt
did not come from stdio read functions) in the presence of ctype macros, is to always cast to (unsigned char). casting to (int) for a "macro" which is documented to take int, is weird. And sadly wrong, because of the sing extension risk.. same diff from florian
2022-12-13remove advent entry 11/SunLast and leave 12/SunFirst, to avoid gettingJason McIntyre
two "First Sunday of Advent" entries;
2022-12-10ex_range: fix handling of escaped backslashes.Todd C. Miller
If there are two consecutive backslashes, skip past both so the second is not mistakenly treated as an escape character. This is consistent with how escaped backslashes are treated in ex_substitute() and global(). From Bosco G. G.
2022-12-09Warn if no host keys for hostbased auth can be loaded. From bz#3507, ok djm@Darren Tucker
2022-12-09Add some server debugging for hostbased auth.Darren Tucker
auth_debug_add queues messages about the auth process which is sent to the client after successful authentication. This also sends those to the server debug log to aid in debugging. From bz#3507, ok djm@
2022-12-07Process escape sequences in show-buffer, GitHub issue 3401.Nicholas Marriott
2022-12-04userspace: remove vestigial '?' cases from top-level getopt(3) loopsScott Soule Cheloha
getopt(3) returns '?' when it encounters a flag not present in the in the optstring or if a flag is missing its option argument. We can handle this case with the "default" failure case with no loss of legibility. Hence, remove all the redundant "case '?':" lines. Prompted by dlg@. With help from dlg@ and millert@. Link: https://marc.info/?l=openbsd-tech&m=167011979726449&w=2 ok naddy@ millert@ dlg@
2022-12-04systat(1): vmstat: measure elapsed time with clock_gettime(2) instead of ticksScott Soule Cheloha
The vmstat view in systat(1) should not use statclock() ticks to count elapsed time. First, ticks are low resolution. Second, the statclock is sometimes randomized, so each tick is not necessarily of equal length. Third, we're counting ticks from every CPU on the system, so every rate in the view is divided by the number of CPUs. For example, on an amd64 system with 8 CPUs you currently see: 200 clock ... when the true clock interrupt rate on that system is 1600. Instead, measure elapsed time with clock_gettime(2). Use CLOCK_UPTIME here so we exclude time when the system is suspended. With this change we no longer need "stathz" or "hertz". We can also get rid of the anachronistic secondary clock failure test. Prompted by dlg@ and jmatthew@. deraadt@ says this has been in snaps since 2022-11-21; no complaints. Link: https://marc.info/?l=openbsd-tech&m=166898960831136&w=2 ok dlg@ deraadt@
2022-12-04Remove duplicate includes. Patch from AtariDreams via github PR#364.Darren Tucker
2022-12-02midicat(1): use err(3) everywhereScott Soule Cheloha
This is consistent with style(9) and makes the program shorter, too. Tweaked by ratchov@. Link: https://marc.info/?l=openbsd-tech&m=166982129428027&w=2 ok millert@ kn@ ratchov@
2022-12-02midicat(1): set ifile/ofile to "stdin"/"stdout" if it is an en-dash ("-")Scott Soule Cheloha
This makes error messages a little bit more intuitive. Instead of, e.g.: midicat: -: No space left on device you get: midicat: stdout: No space left on device Link: https://marc.info/?l=openbsd-tech&m=166982129428027&w=2 ok millert@ kn@ ratchov@
2022-12-02midicat(1): add a usage() functionScott Soule Cheloha
Tweaked by millert@. Link: https://marc.info/?l=openbsd-tech&m=166982129428027&w=2 ok millert@ kn@ ratchov@
2022-12-02make struct sshbuf private and remove an unused field; ok dtuckerDamien Miller
2022-11-30midicat.c: add missing CVS tag; ok millert@Scott Soule Cheloha
2022-11-29Add void to client_repledge args to fix compiler warning. ok djm@Darren Tucker
2022-11-28tighten pledge(2) after session establishmentDamien Miller
feedback, ok & testing in snaps deraadt@
2022-11-28New EnableEscapeCommandline ssh_config(5) optionDamien Miller
This option (default "no") controls whether the ~C escape is available. Turning it off by default means we will soon be able to use a stricter default pledge(2) in the client. feedback deraadt@ dtucker@; tested in snaps for a while
2022-11-27Move UVM "swpgonly" from Daemon Counters to Swap CountersKlemens Nanni
Put it below "swpginuse" as systat(1) and uvm_init(9) already have it. (uvm.c struct uvmline uvmline[] makes it easy to misplace counters without double-checking against actual systat output.)
2022-11-27Zap nonexistent "vnodepages" and "vtextpages" UVM Page CountersKlemens Nanni
Those members exists with an XXX comment in struct uvmexp/uvm_init(9), but the kernel does not use them at all and systat(1) does not print them.
2022-11-18In channel_request_remote_forwarding the parameters for permission_set_addMoritz Buhl
are leaked as they are also duplicated in the call. Found by CodeChecker. ok djm
2022-11-18Add four new SI prefixes.Florian Obser
This is resolution 3 "Sur l’extension de la liste des préfixes du SI", passed by the 27th meeting of the Conférence générale des poids et mesures. OK deraadt, daniel, sthen
2022-11-11Clean up openssl(1) command execution.joshua
This cleans up the code that handles command execution for openssl(1), displays the help message when 'openssl help' is executed, and exits with code 1 when an invalid command is executed, matching the behaviour of OpenSSL version 1.1+ and above. ok tb@