diff options
author | Patrick Murphy <patrick.muprphy@multitech.com> | 2020-04-23 08:36:34 -0500 |
---|---|---|
committer | Patrick Murphy <patrick.muprphy@multitech.com> | 2020-04-23 08:36:34 -0500 |
commit | 551e521b5ea8436ebc6722a9c616be1c1ed112e9 (patch) | |
tree | 5e2d577e17685a7535a437fe21de415e767d3e7d /src/commission_func.cc | |
parent | af78ffa1471e2a4d821dc31b8b523dc2b95f464a (diff) | |
download | commissioning-551e521b5ea8436ebc6722a9c616be1c1ed112e9.tar.gz commissioning-551e521b5ea8436ebc6722a9c616be1c1ed112e9.tar.bz2 commissioning-551e521b5ea8436ebc6722a9c616be1c1ed112e9.zip |
modified password creation
Diffstat (limited to 'src/commission_func.cc')
-rw-r--r-- | src/commission_func.cc | 5 |
1 files 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"); |