aboutsummaryrefslogtreecommitdiffstats
path: root/main/openssh/sftp-interactive.patch
blob: ab14f3a6ba2a9ae73188795421653e13f719b4fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/sftp.c	2014-10-24 10:32:15.793544472 +0500
+++ b/sftp.c	2014-10-24 10:35:22.329199875 +0500
@@ -2076,8 +2076,10 @@
 		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");