mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 09:12:24 +00:00
"-noagent" and friends should be marked SAVEABLE, to ensure they're not
clobbered by "-load". [originally from svn r7320]
This commit is contained in:
parent
b897c90dd3
commit
fe1909e0e2
@ -322,12 +322,14 @@ int cmdline_process_param(char *p, char *value, int need_save, Config *cfg)
|
|||||||
!strcmp(p, "-pageant")) {
|
!strcmp(p, "-pageant")) {
|
||||||
RETURN(1);
|
RETURN(1);
|
||||||
UNAVAILABLE_IN(TOOLTYPE_NONNETWORK);
|
UNAVAILABLE_IN(TOOLTYPE_NONNETWORK);
|
||||||
|
SAVEABLE(0);
|
||||||
cfg->tryagent = TRUE;
|
cfg->tryagent = TRUE;
|
||||||
}
|
}
|
||||||
if (!strcmp(p, "-noagent") || !strcmp(p, "-nopagent") ||
|
if (!strcmp(p, "-noagent") || !strcmp(p, "-nopagent") ||
|
||||||
!strcmp(p, "-nopageant")) {
|
!strcmp(p, "-nopageant")) {
|
||||||
RETURN(1);
|
RETURN(1);
|
||||||
UNAVAILABLE_IN(TOOLTYPE_NONNETWORK);
|
UNAVAILABLE_IN(TOOLTYPE_NONNETWORK);
|
||||||
|
SAVEABLE(0);
|
||||||
cfg->tryagent = FALSE;
|
cfg->tryagent = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user