Loading src/blogi.cpp +2 −2 Changes for src/blogi.cpp: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -314,7 +314,7 @@ blogi::Blogi::Blogi(std::vector<netplus::socket*> serversocket,bool debug) : Htt } catch(std::exception &e) { std::cerr << "can't connect db for domain '" << dcfg.names[0] << "' (attempt " << attempt << "/" << maxRetries << "): " << e.what() << std::endl; if (attempt == maxRetries) { throw; throw e; } std::cerr << " retrying in " << retrySec << "s..." << std::endl; sleep(retrySec); Loading Loading @@ -2975,7 +2975,7 @@ public: const char *username = "blogi"; if(getpwnam_r(username, &pwd_storage, buffer, sizeof(buffer), &result)!=0 || result==NULL){ throw httpexception[...] << "can'T change user !"; throw libhttppp::HTTPException[libhttppp::] << "can'T change user !"; } seteuid(pwd_storage.pw_uid); setegid(pwd_storage.pw_gid); Loading Loading
src/blogi.cpp +2 −2 Changes for src/blogi.cpp: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -314,7 +314,7 @@ blogi::Blogi::Blogi(std::vector<netplus::socket*> serversocket,bool debug) : Htt } catch(std::exception &e) { std::cerr << "can't connect db for domain '" << dcfg.names[0] << "' (attempt " << attempt << "/" << maxRetries << "): " << e.what() << std::endl; if (attempt == maxRetries) { throw; throw e; } std::cerr << " retrying in " << retrySec << "s..." << std::endl; sleep(retrySec); Loading Loading @@ -2975,7 +2975,7 @@ public: const char *username = "blogi"; if(getpwnam_r(username, &pwd_storage, buffer, sizeof(buffer), &result)!=0 || result==NULL){ throw httpexception[...] << "can'T change user !"; throw libhttppp::HTTPException[libhttppp::] << "can'T change user !"; } seteuid(pwd_storage.pw_uid); setegid(pwd_storage.pw_gid); Loading