diff options
author | James Booth <boothj5@gmail.com> | 2015-01-14 00:28:58 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-01-14 00:28:58 +0000 |
commit | e79302bf0e8856a987a19f573d785e1f4c1736e0 (patch) | |
tree | bcde568172cee6dc83a8e2cac4dbc986602eb45c /src/config/accounts.c | |
parent | a65abed1fbb33c839cadc5e549b43e5f908b59a3 (diff) | |
parent | 12642656917ed3d33e1a82683c09d2136b8b01b1 (diff) | |
download | profani-tty-e79302bf0e8856a987a19f573d785e1f4c1736e0.tar.gz |
Merge remote-tracking branch 'incertia/eval_pass-fixes'
Diffstat (limited to 'src/config/accounts.c')
-rw-r--r-- | src/config/accounts.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/config/accounts.c b/src/config/accounts.c index 01609888..d86fe3af 100644 --- a/src/config/accounts.c +++ b/src/config/accounts.c @@ -226,16 +226,6 @@ accounts_get_account(const char * const name) gchar *password = g_key_file_get_string(accounts, name, "password", NULL); gchar *eval_password = g_key_file_get_string(accounts, name, "eval_password", NULL); - // Evaluate as shell command to retrieve password - if (eval_password != NULL) { - FILE *stream = popen(eval_password, "r"); - // Limit to READ_BUF_SIZE bytes to prevent overflows in the case of a poorly chosen command - password = g_malloc(READ_BUF_SIZE); - gchar *result = fgets(password, READ_BUF_SIZE, stream); - if (result != NULL) { - password = result; - } - } gboolean enabled = g_key_file_get_boolean(accounts, name, "enabled", NULL); gchar *server = g_key_file_get_string(accounts, name, "server", NULL); |