summaryrefslogtreecommitdiffstats
path: root/main/openssh/openssh-sftp-interactive.diff
diff options
context:
space:
mode:
authorPeter Bui <pnutzh4x0r@gmail.com>2014-10-24 11:01:57 -0500
committerNatanael Copa <ncopa@alpinelinux.org>2014-10-30 12:48:29 +0000
commit3996dc08a5472b107a380cbdb79c6d49ff5779ba (patch)
treef2fe704b7eda8b2c6939c5a118ec0ea7c04a032b /main/openssh/openssh-sftp-interactive.diff
parentda33bd3dd3d65c44f4a8cb29cc4051a30007e6cd (diff)
downloadaports-3996dc08a5472b107a380cbdb79c6d49ff5779ba.tar.bz2
aports-3996dc08a5472b107a380cbdb79c6d49ff5779ba.tar.xz
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.
Diffstat (limited to 'main/openssh/openssh-sftp-interactive.diff')
-rw-r--r--main/openssh/openssh-sftp-interactive.diff14
1 files changed, 14 insertions, 0 deletions
diff --git a/main/openssh/openssh-sftp-interactive.diff b/main/openssh/openssh-sftp-interactive.diff
new file mode 100644
index 000000000..ab14f3a6b
--- /dev/null
+++ b/main/openssh/openssh-sftp-interactive.diff
@@ -0,0 +1,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");