From deb0818a1bcf68603670961d463d043bf7e01db5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20Wennerstr=C3=B6m?= Date: Mon, 6 Jul 2020 11:00:09 +0200 Subject: [PATCH] Log errors from eval_password All errors were discarded to /dev/null if the error_ptr was set to NULL. --- src/config/account.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config/account.c b/src/config/account.c index 127831a8..54d7b18e 100644 --- a/src/config/account.c +++ b/src/config/account.c @@ -201,9 +201,10 @@ account_eval_password(ProfAccount *account) assert(account->eval_password != NULL); gchar **output = NULL; + gchar **error = NULL; gchar *argv[] = {"sh", "-c", account->eval_password, NULL}; - if (!call_external(argv, &output, NULL)) { + if (!call_external(argv, &output, &error)) { return FALSE; }