aports/main/cryptsetup/flush-stdout.patch
Sören Tempel f8500bc4d3 main/cryptsetup: upgrade to 2.4.0
Disable support for external tokens (new feature in 2.4.0) since it
requires dlvsym which is a GNU extension that is presently not supported
by musl libc. Similarly the all-symbols-test is affected by the same
problem and thus disabled.
2021-08-18 03:09:49 +02:00

19 lines
606 B
Diff

diff -upr cryptsetup-2.4.0.orig/src/utils_tools.c cryptsetup-2.4.0/src/utils_tools.c
--- cryptsetup-2.4.0.orig/src/utils_tools.c 2021-08-29 15:17:46.989874344 +0200
+++ cryptsetup-2.4.0/src/utils_tools.c 2021-08-29 15:18:45.543241866 +0200
@@ -79,10 +79,13 @@ void tool_log(int level, const char *msg
case CRYPT_LOG_NORMAL:
fprintf(stdout, "%s", msg);
+ fflush(stdout);
break;
case CRYPT_LOG_VERBOSE:
- if (params && params->verbose)
+ if (params && params->verbose) {
fprintf(stdout, "%s", msg);
+ fflush(stdout);
+ }
break;
case CRYPT_LOG_ERROR:
fprintf(stderr, "%s", msg);