summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2019-10-28Start with empty rather than NULL window name to avoid NULL printf ifNicholas Marriott
window_name is evaluated early. Reported by Mikolaj Kucharski.
2019-10-27+ resets P as wellkn
The manual has it, complete the help screen. OK millert
2019-10-26Remove common from "common options" in usage to be closer to SYNOPSIS.Martijn van Duren
Discussed with jmc@
2019-10-26Shorten the SYNOPSIS greatly.Martijn van Duren
While here also fix some wrong definitions. With help from jmc@ Requested by and OK deraadt@
2019-10-24Service names are still resolved with -nkn
Just like pfctl(8)'s -N, this flag only avoid DNS; "nc -vz ::1 socks" still works. Fix documentation by copying pfctl's wording. OK deraadt
2019-10-24add missing unveil of /etc/shells; ok benno@ deraadt@ mestre@ tb@anton
2019-10-24Print IP address in verbose modejob
OK kn@
2019-10-24The ber_* namespace is used by liblber since time immemorial,Theo Buehler
so move our BER API to the unused ober_* prefix to avoid some breakage in ports. Problem diagnosed by jmatthew with ber_free() in samba, but there are many others as pointed out by sthen. tests & ok rob ok sthen (who had an almost identical diff for libutil) "go head hit it" deraadt
2019-10-23list -N before -n in the options list;Jason McIntyre
2019-10-23Add new -N name option, so that calling scripts can change theTheo de Raadt
progname and produce better error messages discussed with aja and jca
2019-10-23change some error reports to include the failing URL (which we vis, inTheo de Raadt
case it came via a redirect) some help from jca, discussed with aja
2019-10-23Document Any key, from Jason Felice.Nicholas Marriott
2019-10-23Revert previous, which works for -N case but causes regress failuresBob Beck
for tls, since the socket is shut down without calling tls_close(). Since nc appears to have a problem with this in other shutdown() cases I am simply going to bake a new diff for this. noticed by bluhm@.
2019-10-23Use the existing code in format.c to add foramts for word and line atNicholas Marriott
cursor position in copy mode, from Anindya Mukherjee.
2019-10-22fixes from lucas;Jason McIntyre
2019-10-22Import regenerated moduli file.Darren Tucker
2019-10-19Add formats for cursor and selection position in copy mode, from Jason Felice.Nicholas Marriott
2019-10-19Do not crash trying to fix layout size if only one cell, from Azat Khuzhin.Nicholas Marriott
2019-10-18add some checks to avoid UID_MAX (-1) here. this is not problematic withTed Unangst
the current code, but it's probably safer this way. ok deraadt
2019-10-17Use -1 to indicate an invalid uid/gid, not UID_MAX and GID_MAX.Todd C. Miller
This is the userland portion. OK deraadt@ sashan@
2019-10-17Fix -N flag to actually shut down the (entire) socket when the inputBob Beck
goes away. This allows for using nc in cases where the network server will no longer expect anything after eof, instead of hanging waiting for more input from our end. Additionaly, shut down if tls is in use if either side of the socket goes away, since we higher level TLS operations (tls_read and write) will require the socket to be both readable and writable as we can get TLS_WANT_POLLIN or TLS_WANT_POLLOUT on either operation. deraadt@ buying it. found by sthen@
2019-10-16potential NULL dereference for revoked hostkeys; reported byDamien Miller
krishnaiah bommu
2019-10-16free buf before return; reported by krishnaiah bommuDamien Miller
2019-10-15Include the .SUNW_ctf section in bsd.gdbMartin Pieuchot
Once the section has been built from the DWARF symbols also add it to the debug kernel. That makes ddb(4) print the correct number of args in function backtraces in such kernel as well. While here make comment fit in 80 columns. ok jasper@
2019-10-15Rewrite options_array_set to be clearer and remove a spurious warningNicholas Marriott
with newer GCC. From Ben Boeckel.
2019-10-15Add support for percentage sizes for resize-pane ("-x 10%"). Also changeNicholas Marriott
split-window and join-pane -l to accept similar percentages and deprecate -p. From Anindya Mukherjee.
2019-10-15When setting the modification time on the retrieved file, use utimensat()Philip Guenther
with UTIME_OMIT for the atime, instead of setting the atime to the current time. ok jca@ cheloha@
2019-10-14pledge() won't work but we can use unveil() to reduce filesystem accessTheo de Raadt
in these 3 related programs (they borrow parts of each other using .PATH) Hopefully no regressions, ktrace checks by myself and mestre
2019-10-14some knf, preparing for other changesTheo de Raadt
2019-10-14Do not crash with pane_current_command if the pane is newly created andNicholas Marriott
has no shell set, from Thomas Adam.
2019-10-14Turn automatic-rename back on if the rename escape sequence is used withNicholas Marriott
an empty name, GitHub issue 1921.
2019-10-14Some old tmux versions can sometimes generate layout strings which haveNicholas Marriott
the incorrect size for the top cell. Previously tmux didn't care but now that panes can be partly hidden, the size matters and is checked more strictly. So add some code to fix up the most common problem and a sanity check to reject layouts with any other size problems. Reported by Aleksandrs Ledovskis in GitHub issue 1930.
2019-10-14Memory leaks, from Igor Wong in GitHub issue 1934.Nicholas Marriott
2019-10-14memleak in error path; spotted by oss-fuzz, ok markus@Damien Miller
2019-10-13Also close the server connection before retrying on a 503.Jeremie Courreges-Anglas
Keeping it around uses both local and remote resources for no good reason. ok job@
2019-10-13Factor out socket cleanup codeJeremie Courreges-Anglas
As a side effect this shuts down the TLS connection before closing the underlying socket for redirectionss. ok job@
2019-10-11don't use sizeof(pointer) to represent buffer sizeJonathan Gray
ok martijn@ deraadt@
2019-10-09On a 503, only retry if "Retry-After: 0" is present.Jeremie Courreges-Anglas
We just bail out if the header is absent or if the server tells us to wait. Prodding from job@, ok sthen@ deraadt@
2019-10-09Use snprintf instead of sprintf.Martijn van Duren
Requested by and OK deraadt@
2019-10-09openssh-8.1Damien Miller
2019-10-09fix an unreachable integer overflow similar to the XMSS case, and someDamien Miller
other NULL dereferences found by fuzzing. fix with and ok markus@
2019-10-09fix integer overflow in XMSS private key parsing. Reported byDamien Miller
Adam Zabrocki via SecuriTeam's SSH program. Note that this code is experimental and not compiled by default. ok markus@
2019-10-08Correct type for end-of-list sentinel; fixes initializer warnings onDarren Tucker
some platforms. ok deraadt.
2019-10-08Simplify threads flag handlingkn
Instead of always passing the threads flag which decides whether other function arguments are used or not, make callers pass those arguments or NULL depending on the threads flag. This reflects better how thread IDs are shown in place of user names/IDs. OK millert
2019-10-08Free the "e" element in ber_printf_elements if it fails, since there's noMartijn van Duren
chance that it's part of the new ber structure. Feedback and OK claudio@
2019-10-08Don't rely on the pdu returning the correct errorindex.Martijn van Duren
Noticed by semarie@ Feedback and OK claudio@
2019-10-08Replace "boolean.h" with <stdbool.h>kn
Be consistent with other programs in base and unify variable usage as follows to improve readability: bool = (bool == No) ? Yes : No -> bool = !bool if (bool == Yes) -> if (bool) if (bool == No) -> if (!bool) bool = Maybe -> bool = -1 OK millert
2019-10-07reversed test yielded incorrect debug messageDamien Miller
2019-10-07jmc is a stickler for consistency.Ted Unangst
2019-10-07add --label to usage. thx jmcTed Unangst