OSDN Git Service

Add option -p for TortoisePlink.
authorFrank Li <lznuaa@gmail.com>
Mon, 25 May 2009 07:02:02 +0000 (15:02 +0800)
committerFrank Li <lznuaa@gmail.com>
Mon, 25 May 2009 07:02:02 +0000 (15:02 +0800)
-p the same as -P

Signed-off-by: Frank Li <lznuaa@gmail.com>
src/TortoisePlink/CMDLINE.C

index 19a25be..87b119d 100644 (file)
@@ -306,7 +306,7 @@ int cmdline_process_param(char *p, char *value, int need_save, Config *cfg)
        cfg->remote_cmd_ptr2 = NULL;\r
        cfg->nopty = TRUE;      /* command => no terminal */\r
     }\r
        cfg->remote_cmd_ptr2 = NULL;\r
        cfg->nopty = TRUE;      /* command => no terminal */\r
     }\r
-    if (!strcmp(p, "-P")) {\r
+    if ((!strcmp(p, "-P"))||(!strcmp(p, "-p"))) {\r
        RETURN(2);\r
        UNAVAILABLE_IN(TOOLTYPE_NONNETWORK);\r
        SAVEABLE(1);                   /* lower priority than -ssh,-telnet */\r
        RETURN(2);\r
        UNAVAILABLE_IN(TOOLTYPE_NONNETWORK);\r
        SAVEABLE(1);                   /* lower priority than -ssh,-telnet */\r