jfsutils: flush stdout before waiting for user input.

fixes #18499.
This commit is contained in:
Enno Boland 2020-01-27 11:57:19 +01:00
parent 9215213107
commit f6439d6229
No known key found for this signature in database
GPG key ID: 5A7B9F1D0DFEB55D
2 changed files with 13 additions and 1 deletions

View file

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

View file

@ -1,7 +1,7 @@
# Template file for 'jfsutils'
pkgname=jfsutils
version=1.1.15
revision=2
revision=3
build_style=gnu-configure
makedepends="libuuid-devel"
short_desc="JFS filesystem utilities"