summaryrefslogblamecommitdiff
path: root/system/openssh/sftp-interactive.patch
blob: e4b8967bf11fa10c98a77f165e671c0d4322d552 (plain) (tree)
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
@@ -2243,8 +2243,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");