Sync OpenBSD patchset 241:

No arguments are the same as new-session and this requires the environment to
be sent, so set that flag too when argc == 0.
This commit is contained in:
Tiago Cunha 2009-08-10 21:43:34 +00:00
parent c261ae32d2
commit 48ede1a00a

4
tmux.c
View File

@ -1,4 +1,4 @@
/* $Id: tmux.c,v 1.158 2009-08-09 17:48:55 tcunha Exp $ */ /* $Id: tmux.c,v 1.159 2009-08-10 21:43:34 tcunha Exp $ */
/* /*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -471,7 +471,7 @@ main(int argc, char **argv)
if (unlock) if (unlock)
cmdflags &= ~CMD_STARTSERVER; cmdflags &= ~CMD_STARTSERVER;
else if (argc == 0) else if (argc == 0)
cmdflags |= CMD_STARTSERVER; cmdflags |= CMD_STARTSERVER|CMD_SENDENVIRON;
else { else {
/* /*
* It sucks parsing the command string twice (in client and * It sucks parsing the command string twice (in client and