[Ttssh2-commit] [4235] コマンドラインから ForwardAgentConfirm を変更できるようにした。

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2010年 12月 19日 (日) 23:12:19 JST


Revision: 4235
          http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=4235
Author:   doda
Date:     2010-12-19 23:12:19 +0900 (Sun, 19 Dec 2010)

Log Message:
-----------
コマンドラインから ForwardAgentConfirm を変更できるようにした。
# いいオプション名が思いつかない… なにかいいオプション名はないですか?

Modified Paths:
--------------
    trunk/ttssh2/ttxssh/ttxssh.c


-------------- next part --------------
Modified: trunk/ttssh2/ttxssh/ttxssh.c
===================================================================
--- trunk/ttssh2/ttxssh/ttxssh.c	2010-12-19 14:08:13 UTC (rev 4234)
+++ trunk/ttssh2/ttxssh/ttxssh.c	2010-12-19 14:12:19 UTC (rev 4235)
@@ -1525,6 +1525,17 @@
 			} else if (_stricmp(option + 4, "-autologin") == 0 ||
 			           _stricmp(option + 4, "-autologon") == 0) {
 				pvar->settings.TryDefaultAuth = TRUE;
+			} else if (MATCH_STR_I(option + 4, "-agentconfirm=") == 0) {
+				if ((_stricmp(option+18, "off") == 0) ||
+				    (_stricmp(option+18, "no") == 0) ||
+				    (_stricmp(option+18, "false") == 0) ||
+				    (_stricmp(option+18, "0") == 0) ||
+				    (_stricmp(option+18, "n") == 0)) {
+					pvar->settings.ForwardAgentConfirm = 0;
+				}
+				else {
+					pvar->settings.ForwardAgentConfirm = 1;
+				}
 
 			// -axx‚æ‚èã‚É‚µ‚Ä‚Í‚¾‚ß
 			} else if (MATCH_STR(option + 4, "-a") == 0) {



Ttssh2-commit メーリングリストの案内
Back to archive index