• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Virtual machine Management Terminal User Interface


Commit MetaInfo

Revision38e62f916b69089812417ed95d7918c77653ef97 (tree)
Time2023-04-01 23:07:04
AuthorKoine Yuusuke(koinec) <koinec@user...>
CommiterKoine Yuusuke(koinec)

Log Message

WorkBackup

Change Summary

Incremental Difference

--- a/src/localexec.c
+++ b/src/localexec.c
@@ -164,7 +164,20 @@ int
164164 pstr_now += (gt_openssh.path.i_len + 1);
165165
166166 // SSH option --
167- // XXX
167+ if( 0 < gt_openssh.option.i_len ) {
168+ strncpy( str_option, gt_openssh.option.str_option, VMTUI_CMDINFO_MAXLEN_OPTION );
169+
170+ pstr_next = str_option;
171+ while( NULL != (pstr_val = strsep( &pstr_next, " " ))) {
172+ if( '\0' == *(pstr_val + 0) ) { continue; }
173+
174+ pstr_argv[i_argc++] = pstr_now;
175+ do {
176+ *pstr_now++ = *pstr_val;
177+ i_remain--;
178+ }while( '\0' != *pstr_val++ );
179+ }
180+ }
168181
169182 // SSH terminal (-t) option --
170183 strncpy( pstr_now, "-t", i_remain );
@@ -244,7 +257,22 @@ int
244257 pstr_now += 4;
245258
246259 // XXX sudo option
247-
260+ /*
261+ if( 0 < gt_openssh.option.i_len ) {
262+ strncpy( str_option, gt_openssh.option.str_option, VMTUI_CMDINFO_MAXLEN_OPTION );
263+
264+ pstr_next = str_option;
265+ while( NULL != (pstr_val = strsep( &pstr_next, " " ))) {
266+ if( '\0' == *(pstr_val + 0) ) { continue; }
267+
268+ pstr_argv[i_argc++] = pstr_now;
269+ do {
270+ *pstr_now++ = *pstr_val;
271+ i_remain--;
272+ }while( '\0' != *pstr_val++ );
273+ }
274+ }
275+ */
248276 }
249277
250278 strncpy( pstr_now, VMBHYVE_DEFAULT_PATH, VMBHYVE_DEFAULT_PATH_LEN );