From 6eaa8806c6bbe865035bda53ff5403337bb1d9c4 Mon Sep 17 00:00:00 2001 From: jacob Date: Sun, 25 Apr 2004 15:33:10 +0000 Subject: [PATCH] In the special case that handles selecting a session and hitting Enter, there is a structure copy of a Config, which invalidated the remote_cmd_ptr in that structure (pointing to its own remote_cmd). This was causing remote commands not to be executed in this special case. I've patched the pointer up manually (as is done in plink.c), but ugh. git-svn-id: svn://svn.tartarus.org/sgt/putty@4140 cda61777-01e9-0310-a592-d414129be87e --- config.c | 1 + 1 file changed, 1 insertion(+) diff --git a/config.c b/config.c index 03dcbf75..68aaee74 100644 --- a/config.c +++ b/config.c @@ -358,6 +358,7 @@ static void sessionsaver_handler(union control *ctrl, void *dlg, /* If at this point we have a valid session, go! */ if (*cfg2.host) { *cfg = cfg2; /* structure copy */ + cfg->remote_cmd_ptr = cfg->remote_cmd; /* nasty */ dlg_end(dlg, 1); } else dlg_beep(dlg); -- 2.11.0