mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-28 21:02:25 +01:00
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.
15 lines
359 B
Diff
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");
|