summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2009-08-10 20:51:29 +0000
committernicm <nicm@openbsd.org>2009-08-10 20:51:29 +0000
commite7a5a6f05a6c6e0d71e883608c78ec4186922dfc (patch)
tree77e10579fecdc16ed73ac6d55d74c778bbfd0cb9 /usr.bin/tmux
parentMore cases of shutdown hooks not needed after card is already stopped. In (diff)
downloadwireguard-openbsd-e7a5a6f05a6c6e0d71e883608c78ec4186922dfc.tar.xz
wireguard-openbsd-e7a5a6f05a6c6e0d71e883608c78ec4186922dfc.zip
No arguments are the same as new-session and this requires the environment to
be sent, so set that flag too when argc == 0.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/tmux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/tmux.c b/usr.bin/tmux/tmux.c
index 1beb777d275..e4d9e3235e2 100644
--- a/usr.bin/tmux/tmux.c
+++ b/usr.bin/tmux/tmux.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmux.c,v 1.29 2009/08/08 21:52:43 nicm Exp $ */
+/* $OpenBSD: tmux.c,v 1.30 2009/08/10 20:51:29 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -462,7 +462,7 @@ main(int argc, char **argv)
if (unlock)
cmdflags &= ~CMD_STARTSERVER;
else if (argc == 0)
- cmdflags |= CMD_STARTSERVER;
+ cmdflags |= CMD_STARTSERVER|CMD_SENDENVIRON;
else {
/*
* It sucks parsing the command string twice (in client and