/[projects]/smsdaemon/daemon.cpp
ViewVC logotype

Diff of /smsdaemon/daemon.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 208 by torben, Sun Dec 21 18:41:08 2008 UTC revision 214 by torben, Mon Dec 22 22:22:42 2008 UTC
# Line 46  void lookup_uid_values() Line 46  void lookup_uid_values()
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)

Legend:
Removed from v.208  
changed lines
  Added in v.214

  ViewVC Help
Powered by ViewVC 1.1.20