about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-07-06 11:06:24 +0200
committerGitHub <noreply@github.com>2020-07-06 11:06:24 +0200
commit5e87b0dc51c941bcc819736c93ef06b9e24517a6 (patch)
tree3df73c26cbca689b239b735b86ad136ebcc9a644
parent0a23de061ac1c140df44f98852919ea6a5246d3d (diff)
parentdeb0818a1bcf68603670961d463d043bf7e01db5 (diff)
downloadprofani-tty-5e87b0dc51c941bcc819736c93ef06b9e24517a6.tar.gz
Merge pull request #1394 from wstrm/fix-log-errors-call-external
Log errors from eval_password
-rw-r--r--src/config/account.c3
1 files changed, 2 insertions, 1 deletions
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;
     }