mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-30 15:03:31 +01:00
Linux: capture both stdout and stderr in popen call to avoid printing anything
If an error happens, error message will be read from popen pipe and so libpcsclite.so will not be found. This is the same outcome as when stdout is empty.
This commit is contained in:
parent
16bb1de3a6
commit
dab261c694
@ -82,9 +82,9 @@ namespace VeraCrypt
|
|||||||
string pcscPath = "";
|
string pcscPath = "";
|
||||||
FILE* pipe =
|
FILE* pipe =
|
||||||
#ifdef TC_LINUX
|
#ifdef TC_LINUX
|
||||||
popen("ldconfig -p", "r");
|
popen("ldconfig -p 2>&1", "r");
|
||||||
#else
|
#else
|
||||||
popen("ldconfig -r", "r"); // FreeBSD
|
popen("ldconfig -r 2>&1", "r"); // FreeBSD
|
||||||
#endif
|
#endif
|
||||||
if (pipe)
|
if (pipe)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user