summaryrefslogtreecommitdiff
path: root/src/commission_func.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/commission_func.cc')
-rw-r--r--src/commission_func.cc5
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");