mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 09:58:01 +00:00
Process -t/-T later than -m, so that they can override -m's default behaviour
of no pty. [originally from svn r7348]
This commit is contained in:
parent
a3ff37885d
commit
2b0d1b0224
@ -374,13 +374,13 @@ int cmdline_process_param(char *p, char *value, int need_save, Config *cfg)
|
|||||||
if (!strcmp(p, "-t")) {
|
if (!strcmp(p, "-t")) {
|
||||||
RETURN(1);
|
RETURN(1);
|
||||||
UNAVAILABLE_IN(TOOLTYPE_FILETRANSFER | TOOLTYPE_NONNETWORK);
|
UNAVAILABLE_IN(TOOLTYPE_FILETRANSFER | TOOLTYPE_NONNETWORK);
|
||||||
SAVEABLE(0);
|
SAVEABLE(1); /* lower priority than -m */
|
||||||
cfg->nopty = 0;
|
cfg->nopty = 0;
|
||||||
}
|
}
|
||||||
if (!strcmp(p, "-T")) {
|
if (!strcmp(p, "-T")) {
|
||||||
RETURN(1);
|
RETURN(1);
|
||||||
UNAVAILABLE_IN(TOOLTYPE_FILETRANSFER | TOOLTYPE_NONNETWORK);
|
UNAVAILABLE_IN(TOOLTYPE_FILETRANSFER | TOOLTYPE_NONNETWORK);
|
||||||
SAVEABLE(0);
|
SAVEABLE(1);
|
||||||
cfg->nopty = 1;
|
cfg->nopty = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user