aboutsummaryrefslogtreecommitdiffstats
path: root/main/cryptsetup/flush-stdout.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-10-24 13:04:35 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2014-10-24 13:05:37 +0200
commit24721fe3c7f2979b4031e78bdc15262b4d586593 (patch)
treef5a2695c18e8429dfe0a1648a0b937d503e7859c /main/cryptsetup/flush-stdout.patch
parent27b42993848c39a9c02a8fe56544894b3c2577a2 (diff)
downloadaports-24721fe3c7f2979b4031e78bdc15262b4d586593.tar.bz2
aports-24721fe3c7f2979b4031e78bdc15262b4d586593.tar.xz
main/cryptsetup: make sure we flush stdout when prompting user
ref #3471
Diffstat (limited to 'main/cryptsetup/flush-stdout.patch')
-rw-r--r--main/cryptsetup/flush-stdout.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/main/cryptsetup/flush-stdout.patch b/main/cryptsetup/flush-stdout.patch
new file mode 100644
index 0000000000..ae21a235f5
--- /dev/null
+++ b/main/cryptsetup/flush-stdout.patch
@@ -0,0 +1,17 @@
+--- ./src/utils_tools.c.orig 2014-10-24 12:58:35.151717616 -0200
++++ ./src/utils_tools.c 2014-10-24 13:00:42.716855265 -0200
+@@ -105,10 +105,13 @@
+
+ case CRYPT_LOG_NORMAL:
+ fputs(msg, stdout);
++ fflush(stdout);
+ break;
+ case CRYPT_LOG_VERBOSE:
+- if (opt_verbose)
++ if (opt_verbose) {
+ fputs(msg, stdout);
++ fflush(stdout);
++ }
+ break;
+ case CRYPT_LOG_ERROR:
+ fputs(msg, stderr);