1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 09:58:01 +00:00

Arrgh, we can't have -p for port number because we're already using

it for preserving file attributes in PSCP! Ah well; looks as if
that's one where we'll have to agree to differ with OpenSSH.

[originally from svn r1821]
This commit is contained in:
Simon Tatham 2002-08-07 19:09:33 +00:00
parent b844f3c0bf
commit 54e9304111

View File

@ -222,7 +222,7 @@ int cmdline_process_param(char *p, char *value, int need_save)
cfg.remote_cmd_ptr2 = NULL; cfg.remote_cmd_ptr2 = NULL;
cfg.nopty = TRUE; /* command => no terminal */ cfg.nopty = TRUE; /* command => no terminal */
} }
if (!strcmp(p, "-P") || !strcmp(p, "-p")) { if (!strcmp(p, "-P")) {
RETURN(2); RETURN(2);
SAVEABLE(2); /* lower priority than -ssh,-telnet */ SAVEABLE(2); /* lower priority than -ssh,-telnet */
cfg.port = atoi(value); cfg.port = atoi(value);