aports/main/openssh/openssh-sftp-interactive.diff
Peter Bui 3996dc08a5 main/openssh: flush stdout for interactive sftp
Previously, the "sftp> " prompt would only appear after a command was
entered.  This simply calls fflush on stdout to force the prompt to
appear during interactive mode.
2014-10-30 12:48:29 +00:00

15 lines
359 B
Diff

--- 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");