Commit 0c1e8d47 authored by Timo Teräs's avatar Timo Teräs

main/truecrypt: flush stdout before reading stdin

stdout is line-buffered, and needs to be flushed explicitly
in musl. fixes #6992
parent 44aebd4a
......@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=truecrypt
pkgver=7.1a
pkgrel=2
pkgrel=3
pkgdesc="crypto"
url="http://www.truecrypt.org/"
arch="all"
......@@ -15,6 +15,7 @@ subpackages=""
source="https://sources.archlinux.org/other/tc/truecrypt-${pkgver}.tar.gz
https://sources.archlinux.org/other/tc/pkcs-2.20.tar.gz
fix-invalid-characters.patch
flush-stdout.patch
truecrypt-arch-detection.patch
execstack-fix.patch
libdl.patch
......@@ -41,23 +42,10 @@ package() {
"$pkgdir"/usr/share/applications/truecrypt.desktop
}
md5sums="102d9652681db11c813610882332ae48 truecrypt-7.1a.tar.gz
ce6a707b79411e82e8e558aa03e764b0 pkcs-2.20.tar.gz
d136d2e8a93c45740cfbb73819786966 fix-invalid-characters.patch
00ea70fa8437de877b31b027ac2b4060 truecrypt-arch-detection.patch
78e606e6582dacc3176d59ad4419b6bb execstack-fix.patch
11d7a8d9b83012750f0161f6116a9af8 libdl.patch
183b9bf04a943454d4e216130bcbac01 truecrypt.desktop"
sha256sums="e6214e911d0bbededba274a2f8f8d7b3f6f6951e20f1c3a598fc7a23af81c8dc truecrypt-7.1a.tar.gz
d2bf64094eec48b4695a15d91c05fe4469485a5cc6b0efc0ee75a20c095bd40d pkcs-2.20.tar.gz
b3bef13e9eb6090f5f98e9c1b54f3dd0c278de98642cac184131a63b4728672b fix-invalid-characters.patch
a1e1307582c8d890d474dbf69656e1c1a51d57bba721c596986bfb34210be95e truecrypt-arch-detection.patch
c5f437b173bc0abef978bbb160f53ca058469c696de1ce8968e3cef2d3640d79 execstack-fix.patch
8a8668080ae061eb31c859cfe7f596b5ed0d3911b9df1535a197a67900c6da62 libdl.patch
c1ed83cf908780aa69a49f517b7336b5985c6ee38b067749272191a878a52923 truecrypt.desktop"
sha512sums="b5e766023168015cb91bfd85c9e2621055dd98408215e02704775861b5070c5a0234a00c64c1bf7faa34e6d0b51ac71cd36169dd7a6f84d7a34ad0cfa304796a truecrypt-7.1a.tar.gz
d69d90040da5bc93f91041ed9404f1614a3b1bdc8eddc2bbbd19367f12d2416a6f3af8b0071d77e1273d627148c63ebe7ebe332878fbe9adb8ae33dcc723f473 pkcs-2.20.tar.gz
da6a97ba4caa7b3e6455fa7f126282a5aa9bffb04d5cfd0f7e1358bf7177c68a4102632ae32121a670abe5bb63ab522e9c1bf8f0e7ad336954760089252f39d8 fix-invalid-characters.patch
837c147bc934f7ac431792ea49eae208fc2dbf792ba8e84a8d9ed72e8fdb39caeffe02f1664f6354b1d8d473a3f74f2d15e012379cc9d6db149f48af99205f0b flush-stdout.patch
fac6963c65720f0b13486ff22bdcc2e31e78c39ede2b9561b2c4037ef2c0375f04c4d51dc6067c37aaeb664c3ed70e5747488389737c41807680750c26a8f084 truecrypt-arch-detection.patch
a5d843a0eac7f14668e8c722a85ab8d871f64cf0488a9d9acd33235f077e74af3d191a3a6c18ddd25e8b487ef56b3afdbb6f3d7877113687a8101a1b855c366e execstack-fix.patch
83a8daefe3137581daab0aed599a9b47ec19a7403bdca424eb86fce482ddefb0a513ad18522a7d9b03d18fb771502ef378c76626521d8184c2e200e23d499737 libdl.patch
......
--- truecrypt-7.1a-source/Main/TextUserInterface.cpp.orig 2017-03-10 14:07:32.880449234 +0200
+++ truecrypt-7.1a-source/Main/TextUserInterface.cpp 2017-03-10 14:11:28.843128874 +0200
@@ -1247,6 +1247,8 @@
if (!TextInputStream.get() || feof (stdin) || ferror (stdin))
throw UserAbort (SRC_POS);
+ wcout.flush();
+
line = TextInputStream->ReadLine();
if (ferror (stdin) || (line.empty() && feof (stdin)))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment