mirror of
https://github.com/PowerShell/Win32-OpenSSH.git
synced 2025-07-24 14:35:35 +02:00
Fix directive.
This commit is contained in:
parent
f5c9367145
commit
38f8da0160
10
sftp.c
10
sftp.c
@ -2120,6 +2120,7 @@ interactive_loop(struct sftp_conn *conn, char *file1, char *file2)
|
|||||||
signal(SIGINT, SIG_IGN);
|
signal(SIGINT, SIG_IGN);
|
||||||
|
|
||||||
if (el == NULL) {
|
if (el == NULL) {
|
||||||
|
#ifdef WINDOWS
|
||||||
if (interactive) {
|
if (interactive) {
|
||||||
wchar_t wcmd[2048];
|
wchar_t wcmd[2048];
|
||||||
printf("sftp> ");
|
printf("sftp> ");
|
||||||
@ -2140,6 +2141,15 @@ interactive_loop(struct sftp_conn *conn, char *file1, char *file2)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
if (interactive) {
|
||||||
|
printf("sftp> ");
|
||||||
|
if (fgets(cmd, sizeof(cmd), infile) == NULL) {
|
||||||
|
if (interactive)
|
||||||
|
printf("\n");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
if (!interactive) { /* Echo command */
|
if (!interactive) { /* Echo command */
|
||||||
printf("sftp> %s", cmd);
|
printf("sftp> %s", cmd);
|
||||||
if (strlen(cmd) > 0 &&
|
if (strlen(cmd) > 0 &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user