sftp-interactive.patch 359 Bytes
Newer Older
1
2
--- a/sftp.c	2014-10-24 10:32:15.793544472 +0500
+++ b/sftp.c	2014-10-24 10:35:22.329199875 +0500
3
@@ -2243,8 +2243,10 @@
4
5
6
7
8
9
10
11
12
13
14
 		signal(SIGINT, SIG_IGN);
 
 		if (el == NULL) {
-			if (interactive)
+			if (interactive) {
 				printf("sftp> ");
+				fflush(stdout);
+			}
 			if (fgets(cmd, sizeof(cmd), infile) == NULL) {
 				if (interactive)
 					printf("\n");