mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-18 19:48:05 -05:00
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. [originally from svn r4140]
This commit is contained in:
parent
1e13fdc572
commit
6d563fce50
1
config.c
1
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 at this point we have a valid session, go! */
|
||||||
if (*cfg2.host) {
|
if (*cfg2.host) {
|
||||||
*cfg = cfg2; /* structure copy */
|
*cfg = cfg2; /* structure copy */
|
||||||
|
cfg->remote_cmd_ptr = cfg->remote_cmd; /* nasty */
|
||||||
dlg_end(dlg, 1);
|
dlg_end(dlg, 1);
|
||||||
} else
|
} else
|
||||||
dlg_beep(dlg);
|
dlg_beep(dlg);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user