summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/server-client.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2013-10-10 12:29:35 +0000
committernicm <nicm@openbsd.org>2013-10-10 12:29:35 +0000
commitd87b01fb5034d17ba73d2da58ecfc53e23c31041 (patch)
treeb6377eda32d6538e6cf25219f0af5b4818737279 /usr.bin/tmux/server-client.c
parentRemove now unused cmd_get_default_path. (diff)
downloadwireguard-openbsd-d87b01fb5034d17ba73d2da58ecfc53e23c31041.tar.xz
wireguard-openbsd-d87b01fb5034d17ba73d2da58ecfc53e23c31041.zip
We accidentally haven't been using $TMUX to work out the session for a
while and in fact it is less useful that using the client ttyname. So don't bother and don't pass it from the client. If we need it in future it is in c->environ.
Diffstat (limited to 'usr.bin/tmux/server-client.c')
-rw-r--r--usr.bin/tmux/server-client.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/server-client.c b/usr.bin/tmux/server-client.c
index 00d6e9903b9..10eb95e0579 100644
--- a/usr.bin/tmux/server-client.c
+++ b/usr.bin/tmux/server-client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server-client.c,v 1.110 2013/10/10 12:27:38 nicm Exp $ */
+/* $OpenBSD: server-client.c,v 1.111 2013/10/10 12:29:35 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -62,6 +62,8 @@ server_client_create(int fd)
fatal("gettimeofday failed");
memcpy(&c->activity_time, &c->creation_time, sizeof c->activity_time);
+ environ_init(&c->environ);
+
c->cmdq = cmdq_new(c);
c->cmdq->client_exit = 1;