From 24721fe3c7f2979b4031e78bdc15262b4d586593 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 24 Oct 2014 13:04:35 +0200 Subject: main/cryptsetup: make sure we flush stdout when prompting user ref #3471 --- main/cryptsetup/flush-stdout.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 main/cryptsetup/flush-stdout.patch (limited to 'main/cryptsetup/flush-stdout.patch') 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); -- cgit v1.2.3