summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2020-07-06in 2014 I added this annotation: /* XXX floating point printf in signal ↵Theo de Raadt
handler */ our snprintf is reentrant safe except for floating point. Break the double apart into integer.integer notation, to avoid that. ok kettenis millert
2020-07-06Use mnemonic KERN_PROC_ALL not literal zerokn
No object change.
2020-07-06Do not eliminate redundant clears, the code is wrong and doing itNicholas Marriott
correctly wouldn't be worth it. GitHub issue 2298.
2020-07-06Add a way for control mode clients to subscribe to a format and beNicholas Marriott
notified of changes rather than having to poll. GitHub issue 2242.
2020-07-06Always send xterm-style keys for M-Left and M-Right. GitHub issue 2296.Nicholas Marriott
2020-07-06add kstat(8), the userland side of kstat(4).David Gwynne
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.
2020-07-05some language improvements; ok markusDamien Miller
2020-07-04kill-window -a cannot just walk the list of windows because ifNicholas Marriott
renumber-windows is on, the window it wants to keep could be moved. Change to renumber afterwards and also behave better if the window is linked into the session twice. GitHub issue 2287.
2020-07-04Avoid malloc(3) calls in signal handlerkn
Fetch aborts through SIGINT (^C) print a message with fputs(3), but this calls malloc() on its own, which is not supported from interrupt handler context. Fix it by using write(2) which avoids further memory allocations. While here, merge abortfile() into the identical aborthttp() with a more generic "fetch aborted." message for simplicity. Spotted with vm.malloc_conf=SU and ^C on a port's "make fetch" causing ftp(49660) in malloc(): recursive call Abort trap (core dumped) OK jca (who came up with using write(2) independently)
2020-07-04Fix a double free in error pathsJeremie Courreges-Anglas
Consistently disarm the SIGINT handler on error, else a SIGINT can lead to taking twice the cleanup path. Initial report by naddy@, ok tb@
2020-07-03update setproctitle after re-exec; ok djmMarkus Friedl
2020-07-03keep ignoring HUP after fork+exec; ok djmMarkus Friedl
2020-07-03don't exit the listener on send_rexec_state errors; ok djmMarkus Friedl
2020-07-03put back the mux_ctx memleak fix, but only for channels of typeDamien Miller
SSH_CHANNEL_MUX_LISTENER; Specifically SSH_CHANNEL_MUX_PROXY channels should not have this structure freed.
2020-07-03revert r1.399 - the lifetime of c->mux_ctx is more complex; simply freeingDamien Miller
it here causes other problems
2020-07-03Missing word, from annihilannic at hotmail dot com, GitHub issue 2288.Nicholas Marriott
2020-07-03avoid tilde_expand_filename() in expanding ~/.ssh/rc - if sshd isDamien Miller
in chroot mode, the likely absence of a password database will cause tilde_expand_filename() to fatal; ok dtucker@
2020-07-03Check if client is NULL before using it, GitHub issue 2295.Nicholas Marriott
2020-07-03when redirecting sshd's log output to a file, undo this redirectionDamien Miller
after the session child process is forked(); ok dtucker@
2020-07-03start ClientAliveInterval bookkeeping before first pass throughDamien Miller
select() loop; fixed theoretical case where busy sshd may ignore timeouts from client; inspired by and ok dtucker
2020-07-03Only reset the serveralive check when we receive traffic from the serverDarren Tucker
and ignore traffic from a port forwarding client, preventing a client from keeping a connection alive when it should be terminated. Based on a patch from jxraynor at gmail.com via openssh-unix-dev and bz#2265, ok djm@
2020-07-03fix memory leak of mux_ctx; patch from Sergiy Lozovsky via bz3189Damien Miller
ok dtucker
2020-07-02Update awk to July 2, 2020 version.Todd C. Miller
2020-07-01free kex in ssh_packet_close; ok djm semarieMarkus Friedl
2020-07-01Fix regression with changed SUBSEP in subscript in version 20191024.Todd C. Miller
The length of SUBSEP needs to be rechecked after calling execute(), in case SUBSEP itself has been changed. From tim@
2020-07-01Fix concatenation regression introduced in version 20201024.Todd C. Miller
Concatenation evaluated both sides of the expression before doing its work, which, since assign() evaluates to the cell being assigned to, meant that expressions like "print (a = 1) (a = 2)" would print "22" rather than "12". From Tim van der Molen
2020-07-01update currency exchanges rates;Jason McIntyre
2020-06-30Fix two minor issues in snmpc_parseagent.Martijn van Duren
2020-06-30Fix potential out-of-bounds copy; spotted by Jakub Jirasek, Secunia ResearchOtto Moerbeek
at Flexera. ok deraadt@
2020-06-29Support the "powerpc64" architecture name.Ingo Schwarze
The first file using it in .Dt was just committed by kettenis@.
2020-06-29Replace TAILQ concatenation loop with TAILQ_CONCATbket
As a result remove unneeded variables OK @nicm
2020-06-28Add powerpc64 bits. From drahn@Mark Kettenis
2020-06-28Allow switching between alternate devices (-F option) with sndioctl(1)Alexandre Ratchov
2020-06-28Add a new SIOCTL_SEL control type to select one of a predefined set ofAlexandre Ratchov
mutually exclusive values. It's the same as SIOCTL_LIST except that exactly one list element may be selected.
2020-06-27Improve description of field splitting and document FS special cases.Todd C. Miller
OK jmc@ kn@
2020-06-27Replace TAILQ concatenation loops with TAILQ_CONCATbket
OK djm@
2020-06-27Check for no pane border status line separately from top/bottom.Nicholas Marriott
2020-06-27Fix 0x Unicode character parsing, GitHub issue 2286.Nicholas Marriott
2020-06-27Add missing scroll keys to help page, name default signale for kill commandkn
The order of commands is not in sync between help page and manual, but I refrained from reordering to avoid churn. OK millert
2020-06-26Document that FS is applied at the time the input line is read.Todd C. Miller
Previously, our awk suffered from a bug where FS was applied too late. This fix has the potential to cause problems for awk scripts written to the old (buggy) behavior. The current behavior is consistent with other awk implementations such as mawk and gawk.
2020-06-26Remove duplicate initialisationkn
Those are global variables are (zero) initialised as such already and machine_init() is called only once upon startup. OK mvs
2020-06-26Switch cdio's default CDDB database to gnudb.gnudb.org:8880.Christian Weisgerber
The freedb.org CD track database has been discontinued. Retire cddb/888 from /etc/services. Nothing uses this any longer. gnudb.org uses the "cddbp-alt" port of 8880, but we don't need a services(5) entry for a single site. ok deraadt@
2020-06-26Update awk to June 25, 2020 version.Todd C. Miller
2020-06-26Update awk to June 12, 2020 version.Todd C. Miller
2020-06-26backout 1.293 fix kex mem-leak in ssh_packet_close at markus requestSebastien Marie
the change introduced a NULL deref in sshpkt_vfatal() (uses of ssh->kex after calling ssh_packet_clear_keys())
2020-06-26Fix merging of files that lack newlines for diff(3), OpenRCS, and OpenCVS.Stefan Sperling
Merges with a file that lacks newlines (\n) were triggering a fatal error. This could be easily reproduced with merge(1) and diff3(1): $ echo foo > foo $ echo bar > bar $ echo -n baz > baz $ merge -p foo bar baz merge: failed to merge $ diff3 -E foo bar baz 1a ======= diff3prog: logic error $ Fix this by properly handling short reads from the third file argument. Only the third file argument triggered the problem. The other input files were already handled correctly. ok millert@
2020-06-26avoid spurious error message when ssh-keygen creates filesDamien Miller
outside ~/.ssh; with dtucker@
2020-06-26handle EINTR in waitfd() and timeout_connect() helpers;Damien Miller
bz#3071; ok dtucker@
2020-06-26allow "ssh-add -d -" to read keys to be deleted from stdinDamien Miller
bz#3180; ok dtucker@
2020-06-26constify a few things; ok dtucker (as part of another diff)Damien Miller