From 48ede1a00a5e1480534418c2a1846d172533bff1 Mon Sep 17 00:00:00 2001 From: Tiago Cunha Date: Mon, 10 Aug 2009 21:43:34 +0000 Subject: [PATCH] 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. --- tmux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tmux.c b/tmux.c index 24085085..fcdb187e 100644 --- a/tmux.c +++ b/tmux.c @@ -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 @@ -471,7 +471,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