aboutsummaryrefslogtreecommitdiffstats
path: root/main/tftp-hpa/fix-prompt-flush.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/tftp-hpa/fix-prompt-flush.patch')
-rw-r--r--main/tftp-hpa/fix-prompt-flush.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/main/tftp-hpa/fix-prompt-flush.patch b/main/tftp-hpa/fix-prompt-flush.patch
new file mode 100644
index 00000000000..a64b4a5b8bd
--- /dev/null
+++ b/main/tftp-hpa/fix-prompt-flush.patch
@@ -0,0 +1,13 @@
+doesn't flush by default, so the prompt is never printed
+diff --git a/tftp/main.c b/tftp/main.c
+index 4b09840..80e222e 100644
+--- a/tftp/main.c
++++ b/tftp/main.c
+@@ -806,6 +806,7 @@ static void command(void)
+ exit(0); /* EOF */
+ #else
+ fputs(prompt, stdout);
++ fflush(stdout);
+ if (fgets(line, LBUFLEN, stdin) == 0) {
+ if (feof(stdin)) {
+ exit(0);