summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-08-10 20:51:30 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-08-10 20:51:30 +0000
commit5e418f4bd890de1cb4e3a35788cb865cd381c840 (patch)
tree895b9df839bd0da5307ea8851579e08f0bdd100d /usr.bin
parent99a51eb26bb175ed50e8f772700c884309e5b15f (diff)
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')
-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