mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
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
14 lines
280 B
Diff
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') {
|