Virtual machine Management Terminal User Interface
Revision | 38e62f916b69089812417ed95d7918c77653ef97 (tree) |
---|---|
Time | 2023-04-01 23:07:04 |
Author | Koine Yuusuke(koinec) <koinec@user...> |
Commiter | Koine Yuusuke(koinec) |
WorkBackup
@@ -164,7 +164,20 @@ int | ||
164 | 164 | pstr_now += (gt_openssh.path.i_len + 1); |
165 | 165 | |
166 | 166 | // 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 | + } | |
168 | 181 | |
169 | 182 | // SSH terminal (-t) option -- |
170 | 183 | strncpy( pstr_now, "-t", i_remain ); |
@@ -244,7 +257,22 @@ int | ||
244 | 257 | pstr_now += 4; |
245 | 258 | |
246 | 259 | // 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 | + */ | |
248 | 276 | } |
249 | 277 | |
250 | 278 | strncpy( pstr_now, VMBHYVE_DEFAULT_PATH, VMBHYVE_DEFAULT_PATH_LEN ); |