From 551e521b5ea8436ebc6722a9c616be1c1ed112e9 Mon Sep 17 00:00:00 2001 From: Patrick Murphy Date: Thu, 23 Apr 2020 08:36:34 -0500 Subject: modified password creation --- src/commission_func.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/commission_func.cc b/src/commission_func.cc index 08840c9..9c75c19 100644 --- a/src/commission_func.cc +++ b/src/commission_func.cc @@ -174,8 +174,9 @@ int begin_fcgi() { syslog (LOG_ALERT, "popen for passwd failed to return a useful pointer"); //handle error via logging, closing } - parse_cmd= tmp_pass + '\n' + tmp_pass; - fputs(parse_cmd.c_str(), fpopen); + //parse_cmd= tmp_pass + "\n" + tmp_pass; + fputs(tmp_pass.c_str(), fpopen); + fputs(tmp_pass.c_str(), fpopen); popen_ret = pclose(fpopen); if (popen_ret == -1) { syslog (LOG_ALERT, "pclose for passwd failed"); -- cgit v1.2.3