Go to file
Tiago Cunha d637cb33da Sync OpenBSD patchset 181:
Make all messages sent between the client and server fixed size.

This is the first of two changes to make the protocol more resilient and less
sensitive to other changes in the code, particularly with commands. The client
now packs argv into a buffer and sends it to the server for parsing, rather
than doing it itself and sending the parsed command data.

As a side-effect this also removes a lot of now-unused command marshalling
code.

Mixing a server without this change and a client with or vice versa will cause
tmux to hang or crash, please ensure that tmux is entirely killed before
upgrading.
2009-07-28 22:12:16 +00:00
compat Solaris has no strcasestr. 2009-07-02 07:31:02 +00:00
examples Update. 2009-07-20 17:06:13 +00:00
tools Comment FDEBUG and bump dist version. 2009-07-01 22:10:06 +00:00
www Screenshot with more ACS love. 2009-07-24 19:30:51 +00:00
array.h UINT_MAX. 2008-09-29 16:58:02 +00:00
attributes.c Sync to OpenBSD: fixes from ray@. 2009-06-25 15:25:45 +00:00
buffer-poll.c Sync this properly. 2009-06-25 16:22:36 +00:00
buffer.c Restore $Id$ and add script to do so. 2009-06-25 16:21:32 +00:00
cfg.c Restore $Id$ and add script to do so. 2009-06-25 16:21:32 +00:00
CHANGES Try to make a bit more sense here. 2009-07-01 22:15:16 +00:00
client-fn.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
client-msg.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
client.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
clock.c Space trimmage mega-diff. 2009-05-04 17:58:27 +00:00
cmd-attach-session.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-bind-key.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-break-pane.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-choose-session.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-choose-window.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-clear-history.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-clock-mode.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-command-prompt.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-confirm-before.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-copy-buffer.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-copy-mode.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-delete-buffer.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-detach-client.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-display-message.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-down-pane.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-find-window.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-generic.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-has-session.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-if-shell.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-kill-pane.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-kill-server.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-kill-session.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-kill-window.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-last-window.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-link-window.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-list-buffers.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-list-clients.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-list-commands.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-list-keys.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-list-sessions.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-list-windows.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-list.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-load-buffer.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-lock-server.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-move-window.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-new-session.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-new-window.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-next-layout.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-next-window.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-paste-buffer.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-previous-layout.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-previous-window.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-refresh-client.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-rename-session.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-rename-window.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-resize-pane.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-respawn-window.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-rotate-window.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-save-buffer.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-scroll-mode.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-select-layout.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-select-pane.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-select-prompt.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-select-window.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-send-keys.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-send-prefix.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-server-info.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-set-buffer.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-set-option.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-set-password.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-set-window-option.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-show-buffer.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-show-options.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-show-window-options.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-source-file.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-split-window.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-start-server.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-string.c Whoops, chose the wrong one in a conflict. Revert. 2009-07-14 06:54:38 +00:00
cmd-suspend-client.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-swap-pane.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-swap-window.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-switch-client.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-unbind-key.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-unlink-window.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd-up-pane.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
cmd.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
colour.c chmod +x configure 2009-05-18 15:42:30 +00:00
compat.h No paths.h in cmd.c; add _PATH_DEV for Solaris. 2009-07-21 13:07:50 +00:00
configure Don't need ncurses, use curses. 2009-07-14 06:47:12 +00:00
FAQ Update with new UTF-8 environment variable information for 0.9. 2009-07-01 19:49:56 +00:00
GNUmakefile Include .depend in GNUmakefile since GNU make does not include it 2009-07-21 13:51:30 +00:00
grid-view.c Support "alternate screen" mode (terminfo smcup/rmcup) typically used by full 2009-07-14 06:40:33 +00:00
grid.c Sync OpenBSD patchset 153: 2009-07-22 17:31:20 +00:00
input-keys.c Sync OpenBSD patchset 151: 2009-07-22 16:24:59 +00:00
input.c Sync OpenBSD patchset 155: 2009-07-22 17:46:53 +00:00
key-bindings.c Sync OpenBSD patchset 175: 2009-07-25 08:52:04 +00:00
key-string.c Sync OpenBSD patchset 176: 2009-07-25 08:53:48 +00:00
layout-set.c Sync OpenBSD patchset 145: 2009-07-20 15:51:32 +00:00
layout.c Sync OpenBSD patchset 142: 2009-07-20 15:42:05 +00:00
log.c Sync OpenBSD patchset 153: 2009-07-22 17:31:20 +00:00
Makefile Include .depend in GNUmakefile since GNU make does not include it 2009-07-21 13:51:30 +00:00
mode-key.c Sync OpenBSD patchset 169: 2009-07-23 23:29:53 +00:00
names.c If using the default login shell (empty default-command), strip any - prefix. 2009-07-02 18:26:55 +00:00
NOTES This is not really important or major. 2009-07-06 18:53:24 +00:00
options-cmd.c Allow status, mode and message attributes to be changed by three new options: status-attr, mode-attr, message-attr. A comma-separataed list is accepted containing: bright, dim, underscore, blink, reverse, hidden, italics, for example: set -g status-attr bright,blink 2009-01-27 20:22:33 +00:00
options.c Sync OpenBSD patchset 155: 2009-07-22 17:46:53 +00:00
osdep-darwin.c Space trimmage mega-diff. 2009-05-04 17:58:27 +00:00
osdep-freebsd.c #ifndef nitems. 2009-06-26 15:31:15 +00:00
osdep-linux.c Apply the make magic wand to pick an osdep-*.c file rather than using ifdefs. 2009-04-29 23:07:35 +00:00
osdep-netbsd.c Improved NetBSD current-process detection from Roy Marples. 2009-07-15 17:53:15 +00:00
osdep-openbsd.c #ifndef nitems. 2009-06-26 15:31:15 +00:00
osdep-unknown.c Apply the make magic wand to pick an osdep-*.c file rather than using ifdefs. 2009-04-29 23:07:35 +00:00
paste.c Fix two copy/paste bugs: forbid zero-length buffers to prevent a fatal error 2009-07-02 16:23:54 +00:00
resize.c Sync OpenBSD patchset 142: 2009-07-20 15:42:05 +00:00
screen-redraw.c Sync OpenBSD patchset 179: 2009-07-25 09:03:33 +00:00
screen-write.c Sync OpenBSD patchset 162: 2009-07-23 12:48:18 +00:00
screen.c When resizing a screen smaller in alternate screen mode, all the lines needed 2009-07-18 11:06:35 +00:00
server-fn.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
server-msg.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
server.c Sync OpenBSD patchset 175: 2009-07-25 08:52:04 +00:00
session.c Fix $Id$. 2009-07-08 18:03:03 +00:00
status.c Sync OpenBSD patchset 153: 2009-07-22 17:31:20 +00:00
tmux.1 Sync OpenBSD patchset 175: 2009-07-25 08:52:04 +00:00
tmux.c Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
tmux.h Sync OpenBSD patchset 181: 2009-07-28 22:12:16 +00:00
TODO This stuff is done. 2009-07-28 18:51:10 +00:00
tty-keys.c Sync OpenBSD patchset 151: 2009-07-22 16:24:59 +00:00
tty-term.c Whoops, chose the wrong one in a conflict. Revert. 2009-07-14 06:54:38 +00:00
tty.c Sync OpenBSD patchset 164: 2009-07-23 12:57:45 +00:00
utf8.c Restore $Id$ and add script to do so. 2009-06-25 16:21:32 +00:00
window-choose.c A similar for fix for window_choose: don't rely on the callback always being 2009-07-17 12:12:54 +00:00
window-clock.c $Id$. 2009-07-01 19:03:34 +00:00
window-copy.c Sync OpenBSD patchset 171: 2009-07-23 23:37:14 +00:00
window-more.c Restore $Id$ and add script to do so. 2009-06-25 16:21:32 +00:00
window-scroll.c Space trimmage mega-diff. 2009-05-04 17:58:27 +00:00
window.c Sync OpenBSD patchset 165: 2009-07-23 13:10:38 +00:00
xmalloc.c More diff-to-OpenBSD reduction. Move a lot of compat stuff into compat.h. 2009-06-25 16:47:00 +00:00