doesn't flush by default, so the prompt is never printed

https://gitlab.alpinelinux.org/alpine/aports/-/blob/3.21-stable/main/tftp-hpa/fix-prompt-flush.patch
This commit is contained in:
Alexander Zhirov 2025-04-25 01:23:54 +03:00
parent 37ac880897
commit 1dd16bc0df

View file

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