summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2021-10-18Fix menu width containing disabled items, from Alexis Hildebrandt inNicholas Marriott
GitHub issue 2935.
2021-10-18Spacing fixes from Alexis Hildebrandt.Nicholas Marriott
2021-10-18Remove duplicate options, spotted by Ricky Cintron.Nicholas Marriott
2021-10-17simplify a few accesses to fields of structs, using auxiliary pointerIngo Schwarze
variables that are already present (and used nearby) in the code; no functional change
2021-10-17Simplify the code building lists of spans, no output change intended.Ingo Schwarze
A comment in the code claimed that the list of spans would be sorted, but the sorting did not actually work. The layout "LSSS,LLSL" resulted in the list "0-3, 1-2", whereas the layout "LLSL,LSSS" resulted in the list "1-2, 0-3". Since sorting serves no purpose, just leave the list unsorted.
2021-10-15openbsd 7.0 release shipped with the (hopefully last) scp that uses RCPTheo de Raadt
protocol for copying. Let's get back to testing the SFTP protocol.
2021-10-15Do not send any key if -N flag is given even if no other arguments,Nicholas Marriott
fixes problem with repeat in copy mode reported by tb@.
2021-10-14Add popup-border-lines option to set popup line style, from AlexisNicholas Marriott
Hildebrandt, GitHub issue 2930.
2021-10-14When checking ranges in tty_cmd_cells, cannot use the tty cursorNicholas Marriott
position and tty_cursor because it may be at the final invisible cursor position on automargin terminals. The text to be drawn is confined to the pane, so use the pane cursor position for the checks instead. Fix from Anindya Mukherjee, redraw problem reported by naddy@.
2021-10-13Fix fd leak of /dev/tty on auth failure, introduced in revision 1.91.Todd C. Miller
Move the auth retry loop into authuser() and only open /dev/tty once. Also refactor the password reading into authuser_checkpass(). Bug reported by multi AT in-addr DOT xyz. OK kn@
2021-10-13Provide realpath(1)Klemens Nanni
A tiny realpath(3) wrapper to make a porter's life easier. Feedback kettenis deraadt cheloha sthen OK cheloha martijn deraadt
2021-10-13Add popup-style and popup-border-style options, from Alexis HildebrandtNicholas Marriott
in GitHub issue 2927.
2021-10-11avoid arpa/nameser.h by improving the inet_pton/gethostbyaddr code toTheo de Raadt
use struct in6_addr + struct in_addr instead of a char buffer. ok millert
2021-10-11Make positions hidden by overlays range-based rather than character-based,Nicholas Marriott
from Anindya Mukherjee.
2021-10-11Add -e flag to set environment for popup, from Alexis Hildebrandt inNicholas Marriott
GitHub issue 2924.
2021-10-10head(1): validate all line count argumentsScott Soule Cheloha
We need to validate all line count option arguments, not just the last such argument found. While here, switch to the default strtonum(3) error message format: <argument-name> is <errstr>: <argument-string> Thread: https://marc.info/?l=openbsd-tech&m=163383023212104&w=2 ok millert@
2021-10-09Merge upstream bug fixesTobias Stoeckmann
- Switch http to https for upstream URL - Fix buffer sizes and lesskey parser functions - Fix integer overflow in bracket match function - Fix prompt hiding feature (CTRL + P) ok deraadt, millert
2021-10-09Document that CASignatureAlgorithms, ExposeAuthInfo and PubkeyAuthOptionsDarren Tucker
can be used in a Match block. Patch from eehakkin via github PR#277.
2021-10-08remove extra .El;Jason McIntyre
2021-10-08Add tags for command aliasesKlemens Nanni
Make ":tnew" work, i.e. bring the reader to the definition of the full "new-window" command aliased as "new" just like ":tnew-window" would. OK nicm
2021-10-07Add a missing El, from Alexis Hildebrandt in GitHub issue 2918.Nicholas Marriott
2021-10-07Handle splitw -I correctly when used from an attached client, GitHubNicholas Marriott
issue 2917.
2021-10-06Do not reset cursor to default if it has never been changed, fixesNicholas Marriott
problem reported by naddy.
2021-10-05Fix some warnings.Nicholas Marriott
2021-10-05Set mouse_x and mouse_y on the status line, GitHub issue 2913.Nicholas Marriott
2021-10-05Make send-keys without any arguments send the key it is bound to (ifNicholas Marriott
any). GitHub issue 2904.
2021-10-05Separate "very visible" flag from blinking flag, it should not affectNicholas Marriott
DECSCUSR. GitHub issue 2891.
2021-10-05Do not try to use NULL time values.Nicholas Marriott
2021-10-04Clean up memory handling in spawn_pager(), free(3)ing everythingIngo Schwarze
that is malloc(3)ed. In addition to being less confusing, the new code is also shorter by two lines.
2021-10-04In man(1) mode, properly clean up the resn[] result arrayIngo Schwarze
after processing each name given on the command line. Failure to do so resulted in a memory leak of about 50 kilobytes per name given on the command line. Since man(1) uses a few Megabytes of memory anyway and people rarely give hundreds of names on the command line, this leak did not cause practical problems, but cleaning up properly is better in any case.
2021-10-04Provide a cleanup function for the term_tab module, freeing memoryIngo Schwarze
and resetting the internal state to the initial state. Call this function from the proper place in term_free(). With the way the module is currently used, this does not imply any functional change, but doing proper cleanup is more robust, makes it easier during code review to understand what is going on, and makes it explicit that there is no memory leak.
2021-10-04store the operating system name obtained from uname(3) in the adequateIngo Schwarze
struct together with similar state date rather than in a function-scope static variable, such that it can be free(3)d in roff_man_free(); no functional change
2021-10-04Do not leak 64 bytes of heap memory every time a manual page callsIngo Schwarze
a user-defined macro. Calls of standard mdoc(7) and man(7) macros were unaffected, so the effect on OpenBSD manual pages was small, about 80 Kilobytes grand total for a full run of "makewhatis /usr/share/man". Argument expansion contexts for user-defined macros are stored on a stack that grows as needed if calls of user-defined macros are nested or recursive. Individual stack entries contain dynamically allocated arrays of pointers to arguments; these argument arrays also grow as needed if user-defined macros take more than eight arguments. The mistake was that argument arrays of already initialized expansion contexts were leaked rather than reused on subsequent macro calls. I found this issue in a systematic hunt for memory leaks after Michael <Stapelberg at Debian> reported memory exhaustion problems on the production server manpages.debian.org. This sub-Megabyte leak is not the cause of Michael's trouble, though, where Gigabytes of memory are being wasted. We are still investigating whether the original problem may be related to his supervisor process, which is written in Go, rather than to mandoc.
2021-10-02Dynamically allocate encoded HashKnownHosts and free as appropriate.Darren Tucker
Saves 1k of static storage and prevents snprintf "possible truncation" warnings from newer compilers (although in this case it's false positive since the actual sizes are limited by the output size of the SHA1). ok djm@
2021-10-01unbreak FIDO sk-ed25519 key enrollment for OPENSSL=no builds;Damien Miller
ok dtucker@
2021-09-29add some debug output showing how many key file/command linesDamien Miller
were processed. Useful to see whether a file or command actually has keys present
2021-09-28Revert part of the previous diff to fix a regression (another endless loop)Ingo Schwarze
reported by Michael <Stapelberg at Debian> in the Linux md(4) manual. The reason the colwidth[] array is needed is not that it stores widths different from those in tbl->cols[].width, but that only part of the columns participate in the comparisons, i.e. only those intersecting at least one span the still requires width distribution.
2021-09-28Make prototype for rijndaelEncrypt match function including the bounds.Darren Tucker
Fixes error in portable where GCC>=11 takes notice of the bounds. ok deraadt@
2021-09-28Import regenerated moduli.Darren Tucker
2021-09-27Do not call recalculate_sizes while clearing a client session because itNicholas Marriott
needs to loop over the clients, instead do it after all clients are cleared. Fixes a crash reported by martijn@ when a session with multiple clients attached is destroyed, but there are other sessions so tmux does not entirely exit. ok deraadt
2021-09-26openssh-8.8Damien Miller
2021-09-26need initgroups() before setresgid(); reported by anton@, ok deraadt@Damien Miller
2021-09-25RSA/SHA-1 is not used by default anymoreKlemens Nanni
OK dtucker deraadt djm
2021-09-23Remove wpath from secure mode pledge.Tobias Stoeckmann
Upstream removed history file support for secure mode. The history file feature is off by default already, disallowing it altogether in secure mode allows us to drop wpath. Added a note about it to manual page. ok benno, deraadt
2021-09-23Remove an unused variable and a pointless label.Theo Buehler
ok inoguchi
2021-09-22Fix command prompt with multiple prompts (add the result onto the listNicholas Marriott
again as we go along). ok deraadt
2021-09-20fix missing -s in SYNOPSYS and usage() as well as a capitalisationDamien Miller
mistake; spotted by jmc@
2021-09-20Fix "Allocated port" debug message for unix sockets. From peder.stray atDarren Tucker
gmail.com via github PR#272, ok deraadt@
2021-09-20Switch scp back to use the old protocol by default, ahead of release.Damien Miller
We'll wait a little longer for people to pick up sftp-server(8) that supports the extension that scp needs for ~user paths to continue working in SFTP protocol mode. Discussed with deraadt@
2021-09-19bump example versionsSebastian Benoit
Whatever deraadt@