ポート転送のコマンドラインオプションが使えない
/ssh-L13389:localhost:3389 のような、ポート転送のコマンドラインオプションを指定すると「無効なコマンドラインオプション: /ssh-L13389:localhost:3389」というエラーが出てポート転送が有効にならない。
影響が出ているオプション:
trunkのみ。4-stableは問題なし。 おそらく r9436 から。
diff --git a/ttssh2/ttxssh/ttxssh.c b/ttssh2/ttxssh/ttxssh.c index ee8ae7c46..d53fe8987 100644 --- a/ttssh2/ttxssh/ttxssh.c +++ b/ttssh2/ttxssh/ttxssh.c @@ -1479,9 +1479,9 @@ static void PASCAL TTXParseParam(wchar_t *param, PTTSet ts, PCHAR DDETopic) if (wcsncmp(option + 1, L"ssh", 3) == 0) { if (option[4] == 0) { pvar->settings.Enabled = 1; - } else if (wcsncmp(option + 4, L"-L", 3) == 0 || - wcsncmp(option + 4, L"-R", 3) == 0 || - wcsncmp(option + 4, L"-D", 3) == 0) { + } else if (wcsncmp(option + 4, L"-L", 2) == 0 || + wcsncmp(option + 4, L"-R", 2) == 0 || + wcsncmp(option + 4, L"-D", 2) == 0) { wchar_t *p = option + 5; option2[0] = *p; i = 1;
修正をマージしました。r9835 です。
ありがとうございました。
/ssh-L13389:localhost:3389 のような、ポート転送のコマンドラインオプションを指定すると「無効なコマンドラインオプション: /ssh-L13389:localhost:3389」というエラーが出てポート転送が有効にならない。
影響が出ているオプション:
trunkのみ。4-stableは問題なし。 おそらく r9436 から。