[Ttssh2-commit] [6457] ・ScpSendDir のデフォルト値を "" ( 空文字列 ) に変更

svnno****@sourc***** svnno****@sourc*****
2016年 8月 1日 (月) 18:01:33 JST


Revision: 6457
          http://sourceforge.jp/projects/ttssh2/scm/svn/commits/6457
Author:   doda
Date:     2016-08-01 18:01:33 +0900 (Mon, 01 Aug 2016)
Log Message:
-----------
・ScpSendDir のデフォルト値を "" (空文字列) に変更
・ScpsendDir の値が "" の時はサーバ側に渡すパスとして . を使うように変更

Modified Paths:
--------------
    trunk/installer/release/TERATERM.INI
    trunk/teraterm/ttpset/ttset.c
    trunk/ttssh2/ttxssh/ssh.c

-------------- next part --------------
Modified: trunk/installer/release/TERATERM.INI
===================================================================
--- trunk/installer/release/TERATERM.INI	2016-08-01 09:01:30 UTC (rev 6456)
+++ trunk/installer/release/TERATERM.INI	2016-08-01 09:01:33 UTC (rev 6457)
@@ -385,7 +385,7 @@
 FileSendFilter=
 
 ; SCP sending directory
-ScpSendDir=~/
+ScpSendDir=
 
 ; Save Broadcast Command History
 BroadcastCommandHistory=on

Modified: trunk/teraterm/ttpset/ttset.c
===================================================================
--- trunk/teraterm/ttpset/ttset.c	2016-08-01 09:01:30 UTC (rev 6456)
+++ trunk/teraterm/ttpset/ttset.c	2016-08-01 09:01:33 UTC (rev 6457)
@@ -1121,7 +1121,7 @@
 	                        FName);
 
 	/* SCP\x91\x97\x90M\x90\xE6\x83p\x83X (2012.4.6 yutaka) */
-	GetPrivateProfileString(Section, "ScpSendDir", "~/",
+	GetPrivateProfileString(Section, "ScpSendDir", "",
 	                        ts->ScpSendDir, sizeof(ts->ScpSendDir), FName);
 
 

Modified: trunk/ttssh2/ttxssh/ssh.c
===================================================================
--- trunk/ttssh2/ttxssh/ssh.c	2016-08-01 09:01:30 UTC (rev 6456)
+++ trunk/ttssh2/ttxssh/ssh.c	2016-08-01 09:01:33 UTC (rev 6457)
@@ -3887,7 +3887,7 @@
 		strncpy_s(c->scp.localfilefull, sizeof(c->scp.localfilefull), sendfile, _TRUNCATE);  // full path
 		ExtractFileName(sendfile, c->scp.localfile, sizeof(c->scp.localfile));   // file name only
 		if (dstfile == NULL || dstfile[0] == '\0') { // remote file path
-			strncpy_s(c->scp.remotefile, sizeof(c->scp.remotefile), "~/", _TRUNCATE);  // full path
+			strncpy_s(c->scp.remotefile, sizeof(c->scp.remotefile), ".", _TRUNCATE);  // full path
 		} else {
 			strncpy_s(c->scp.remotefile, sizeof(c->scp.remotefile), dstfile, _TRUNCATE);  // full path
 		}



Ttssh2-commit メーリングリストの案内