X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/b552f5000c9cbacf81fc60215ac41957a3033fdb..479fe1ba750b1cda0ad3a159f2727619555436b0:/cmdline.c?ds=sidebyside diff --git a/cmdline.c b/cmdline.c index a67b0132..82cd4f86 100644 --- a/cmdline.c +++ b/cmdline.c @@ -137,6 +137,7 @@ int cmdline_process_param(char *p, char *value, int need_save, Config *cfg) /* This parameter must be processed immediately rather than being * saved. */ do_defaults(value, cfg); + loaded_session = TRUE; return 2; } if (!strcmp(p, "-ssh")) { @@ -313,6 +314,13 @@ int cmdline_process_param(char *p, char *value, int need_save, Config *cfg) cfg->nopty = 1; } + if (!strcmp(p, "-N")) { + RETURN(1); + UNAVAILABLE_IN(TOOLTYPE_FILETRANSFER | TOOLTYPE_NONNETWORK); + SAVEABLE(0); + cfg->ssh_no_shell = 1; + } + if (!strcmp(p, "-C")) { RETURN(1); UNAVAILABLE_IN(TOOLTYPE_NONNETWORK);