aports/community/jfsutils/fflush-stdout.patch
Natanael Copa ee13173828 community/jfsutils: fix use of basename
Also fix issue with not flushing stdout when prompting for user input
while at it. This was discovered while reproducing the issue.

fixes: https://gitlab.alpinelinux.org/alpine/aports/-/issues/16284
ref: https://gitlab.alpinelinux.org/alpine/aports/-/issues/16106
(cherry picked from commit 20349c9320d29f2f43b5542becc9b0b8b24c9452)
2024-07-11 21:00:57 +00:00

14 lines
280 B
Diff

diff --git a/mkfs/mkfs.c b/mkfs/mkfs.c
index 3a1d628..a8edcc7 100644
--- a/mkfs/mkfs.c
+++ b/mkfs/mkfs.c
@@ -924,6 +924,8 @@ int main(int argc, char *argv[])
}
do {
printf("\nContinue? (Y/N) ");
+ fflush(stdout);
+
c = getchar();
if (c == 'n' || c == 'N') {