aports/community/jfsutils/fflush-stdout.patch
Natanael Copa 20349c9320 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
2024-07-11 22:59:21 +02: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') {