summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2009-09-05Only redraw all clients once when the backoff timer expires rather than everyNicholas Marriott
second all the time. Reported by Simon Nicolussi.
2009-09-05- properly free fqdn if it gets reassigned due to multiple -h optionsTobias Stoeckmann
- fixed comment typos with input by and ok millert, otto
2009-09-05Fixed typo in comment.Tobias Stoeckmann
ok millert
2009-09-04Tidy main and make it a bit easier to read.Nicholas Marriott
2009-09-04Tell the user when sleeping due to password backoff.Nicholas Marriott
2009-09-03Correctly escape spaces in the Erlang 4.2/4.3 magic.Stuart Henderson
Fixes printing on Tuesdays from some applications. ok ian@ (yes really - http://catless.ncl.ac.uk/Risks/25.77.html#subj14)
2009-09-02Fix a race condition when asking a client to take over the terminal (switchingNicholas Marriott
to a different poll loop): If a MSG_READY was followed very quickly by a MSG_EXIT (for example if doing "tmux new 'exit'"), both messages could be read as part of the same imsg_read in the first client poll loop. The MSG_READY would then cause a switch to the second client loop, which would immediately call poll(2) again, causing the client to hang forever waiting for an exit message that it already had. Change to call imsg_get to process any existing messages before polling.
2009-09-02When shutting down the server, expect clients to be polite and exit when askedNicholas Marriott
with the right message.
2009-09-02That was the wrong fix. MSG_ERROR should set the error and the client shouldNicholas Marriott
use the error and exit on MSG_EXIT (it was being handled in the default case). Undo the last change, move the errstr check into the MSG_EXIT case, and add a comment.
2009-09-02Set exittype for error exit as well as the error string.Nicholas Marriott
2009-09-02Accept -l to make it easier for people who use tmux as a login shell to useNicholas Marriott
$SHELL. Originally from martynas@, tweaked by me.
2009-09-02When incorrect passwords are entered, behave similarly to login(1) and backoffNicholas Marriott
for a bit. Based on a diff from martynas@.
2009-09-02Add a transpose-chars command in edit mode (C-t in emacs mode only). From KalleNicholas Marriott
Olavi Niemitalo.
2009-09-01fix a race condition in ssh-agent that could result in a wedged orDamien Miller
spinning agent: don't read off the end of the allocated fd_sets, and don't issue blocking read/write on agent sockets - just fall back to select() on retriable read/write errors. bz#1633 reported and tested by "noodle10000 AT googlemail.com"; ok dtucker@ markus@
2009-09-01If forking a login shell or if SHELL is otherwise not useful, set it to theNicholas Marriott
default shell. Based on a diff from martynas@.
2009-09-01When using tmux as a login shell, there is currently no way to specify a shellNicholas Marriott
to be used as a login shell inside tmux, so add a default-shell session option. This sets the shell invoked as a login shell when the default-command option is empty. The default option value is whichever of $SHELL, getpwuid(getuid())'s pw_shell or /bin/sh is valid first. Based on a diff from martynas@, changed by me to be a session option rather than a window option.
2009-09-01Use "Password:" with no space for password prompts and don't display a *s forNicholas Marriott
the password, like pretty much everything else. From martynas@ with minor tweaks by me.
2009-09-01Sort cases same as getopt argument, from martynas.Nicholas Marriott
2009-08-31also, like ssh, set up MAIL to the location we've just checkedMartynas Venckus
so that ksh could take advantage of it. ok millert@
2009-08-31document -e and -h; prodded by jmc@Damien Miller
2009-08-31check correct variable for error message, spotted by martynas@Damien Miller
2009-08-31Add a new display-panes command, with two options (display-panes-colour andNicholas Marriott
display-panes-time), which displays a visual indication of the number of each pane.
2009-08-31squash typoStefan Sperling
ok nicm@
2009-08-31Don't call tty_free unless the client is a terminal, otherwise tty_init hasn'tNicholas Marriott
been called and it may end up doing close(0). From Kalle Olavi Niemitalo.
2009-08-29accept ``common'' messages (including system explusive) on theAlexandre Ratchov
control MIDI port.
2009-08-29gcc2 hates claudioTheo de Raadt
2009-08-28Change the way how the server works. Instead of forking of a child perClaudio Jeker
connection do multiplexing via poll(2). This allows to use more concurrent connections and to specify additional kvm data to fetch. This was all done by Christiano Farina Haesbaert (christiano.fh gmail dot com) plus some input by myself. OK henning@
2009-08-28Change cap_mkdb and curses to be a better about reformatting terminfo entriesNicholas Marriott
into the cap database format and back: rather than replacing all colons with commas, only touch real separators (skip those with a leading \ or ^) and replace an unadorned colon with a literal "\072". Fixes problems with quite a few caps including acsc in "screen" (:s instead of ,s) and setab/initc in "xterm-256color" (wrongly concatenated together). ok millert
2009-08-28add a new AMSG_BYE, sent by the client to requst the server toAlexandre Ratchov
free resources and drop the connection. This allows the client to ensuire that at any time it's using only one connection, thus only one MIDI control channel.
2009-08-28top device before closing it. It's necessary to ensure that if weAlexandre Ratchov
are using another instance of aucat as device, the server closes the connection before we open a new one.
2009-08-27Do not fall back to adding keys without contraints (ssh-add -c / -t ...)Damien Miller
when the agent refuses the constrained add request. This was a useful migration measure back in 2002 when constraints were new, but just adds risk now. bz #1612, report and patch from dkg AT fifthhorseman.net; ok markus@
2009-08-27allow setting an explicit umask on the commandline to override whateverDamien Miller
default the user has. bz#1229; ok dtucker@ deraadt@ markus@
2009-08-27force use of correct hash function for random-art signature displayDamien Miller
as it was inheriting the wrong one when bubblebabble signatures were activated; bz#1611 report and patch from fwojcik+openssh AT besh.com; ok markus@
2009-08-27allow setting an explicit umask on the commandline to override whateverDamien Miller
default the user has. bz#1229; ok dtucker@ deraadt@ markus@
2009-08-27Appease gcc2 (I wish people would write in C, rather than "latest crapTheo de Raadt
gcc added") ok millert miod
2009-08-27Don't stop traversing a directory hierarchy if we reach SHRT_MAX,Todd C. Miller
just stop updating fts_level so we don't overflow it. This allows rm, find, etc to operate on very deep hierarchies. Consumers of fts(3) do need to be aware that the actual level may be larger than fts_level. During the next libc major bump we will make fts_level an int instead of a short. OK deraadt@
2009-08-27Use FTS_ROOTLEVEL instead of 0 when checking fts_level.Todd C. Miller
2009-08-27don't discard the initial volume change message; now it mattersAlexandre Ratchov
because the initial volume may not be MIDI_MAXCTL
2009-08-27when an audio program connects to aucat, restore the volume itAlexandre Ratchov
had the last time. For instance, this fixes the problem of programs reopenning the connection to aucat very often and thus resetting the volume setting all the time.
2009-08-26initialize tmpdir before use; PR 6214Theo de Raadt
2009-08-26Initialise the arg2 pointer properly (also free it when freeing theNicholas Marriott
others). Fixes crashes with J in malloc_options reported by oga.
2009-08-26Make this work when the clock is in small characters as well. Doh.Nicholas Marriott
2009-08-26Fix clock mode in black and white terminals now that tty.c tries to fixNicholas Marriott
reverse.
2009-08-26In "auto-fetch" mode without -o, the filename to save under is derivedStuart Henderson
from the URL. In cases where the URL supplied on the command-line returned an HTTP redirection, ftp(1) was changing the filename to one derived from the redirected URL. Change this to always use a name derived from the command-line URL. Avoids unexpected behaviour with URI-encoded redirection URLs as seen by matecocido on misc@, and avoids surprises when the redirection is to an unexpected filename. No change when -o is used. ok martynas@ deraadt@ "I totally approve" halex@
2009-08-26when allocating the midi channel for the volume control of a newAlexandre Ratchov
client, pick the oldest unused channel rather than the first found. This way new clients don't reuse channels of recently used applications, thus improving a lot the client<->channel affinity.
2009-08-26oops, forgot to update usage();Jason McIntyre
2009-08-26don't mess with audio internals from within the midi bits. InsteadAlexandre Ratchov
use a call-back interface. This allows easily sending volume changes feedback to audio applications.
2009-08-25sub-devices exposed by aucat and sockets it's listening on areAlexandre Ratchov
no longer the same. Rephrase ``audio(4) device or aucat(1) socket'' as ``sndio(7) audio device''. suggested by oga@, tweaks from jmc@
2009-08-25Print -l and -p when showing command, pointed out by Tiago Cunha.Nicholas Marriott
2009-08-25Paragual -> Paraguay; (sort of) from frantisek holopJason McIntyre