]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
"-noagent" and friends should be marked SAVEABLE, to ensure they're not
authorJacob Nevins <jacobn@chiark.greenend.org.uk>
Sat, 24 Feb 2007 22:43:57 +0000 (22:43 +0000)
committerJacob Nevins <jacobn@chiark.greenend.org.uk>
Sat, 24 Feb 2007 22:43:57 +0000 (22:43 +0000)
clobbered by "-load".

[originally from svn r7320]

cmdline.c

index 79f29816de83511b146ea89c9b435358c40e473e..3e890b78fe8b0fc79b118f065db4bec527f3d1a7 100644 (file)
--- a/cmdline.c
+++ b/cmdline.c
@@ -322,12 +322,14 @@ int cmdline_process_param(char *p, char *value, int need_save, Config *cfg)
        !strcmp(p, "-pageant")) {
        RETURN(1);
        UNAVAILABLE_IN(TOOLTYPE_NONNETWORK);
+       SAVEABLE(0);
        cfg->tryagent = TRUE;
     }
     if (!strcmp(p, "-noagent") || !strcmp(p, "-nopagent") ||
        !strcmp(p, "-nopageant")) {
        RETURN(1);
        UNAVAILABLE_IN(TOOLTYPE_NONNETWORK);
+       SAVEABLE(0);
        cfg->tryagent = FALSE;
     }