46 |
{ |
{ |
47 |
Common* cmn = Common::instance(); |
Common* cmn = Common::instance(); |
48 |
|
|
49 |
std::string userstr = cmn->GetConfigfile()->GetValue("smsdaemon","user"); |
std::string userstr = cmn->GetConfigfile()->GetValue("smsdaemon","user",""); |
50 |
std::string groupstr = cmn->GetConfigfile()->GetValue("smsdaemon","group"); |
std::string groupstr = cmn->GetConfigfile()->GetValue("smsdaemon","group",""); |
51 |
|
|
52 |
passwd* pass = getpwnam(userstr.c_str()); |
passwd* pass = getpwnam(userstr.c_str()); |
53 |
if (pass != 0) |
if (pass != 0) |