Loading src/blogi.cpp +3 −5 Changes for src/blogi.cpp: 3 added lines, 5 removed lines. Original line number Diff line number Diff line Loading @@ -2961,7 +2961,6 @@ public: ){ blogi::Blogi::HttpServer = this; libhttppp::HTTPException httpexception; try { try { blogi::Blogi blg(getServerSockets(),debug); #ifndef Windows Loading @@ -2973,7 +2972,9 @@ public: const char *username = "blogi"; if(getpwnam_r(username, &pwd_storage, buffer, sizeof(buffer), &result)!=0 || result==NULL){ // libhttppp::HTTPException exp; exp[libhttppp::HTTPException::Critical] << "can'T change user !"; throw exp; } seteuid(pwd_storage.pw_uid); Loading @@ -2982,9 +2983,6 @@ public: } #endif blg.runEventloop(); }catch(libhttppp::HTTPException &e){ std::cerr << e.what() << std::endl; } }catch(std::exception &e){ std::cerr << e.what() << std::endl; } Loading Loading
src/blogi.cpp +3 −5 Changes for src/blogi.cpp: 3 added lines, 5 removed lines. Original line number Diff line number Diff line Loading @@ -2961,7 +2961,6 @@ public: ){ blogi::Blogi::HttpServer = this; libhttppp::HTTPException httpexception; try { try { blogi::Blogi blg(getServerSockets(),debug); #ifndef Windows Loading @@ -2973,7 +2972,9 @@ public: const char *username = "blogi"; if(getpwnam_r(username, &pwd_storage, buffer, sizeof(buffer), &result)!=0 || result==NULL){ // libhttppp::HTTPException exp; exp[libhttppp::HTTPException::Critical] << "can'T change user !"; throw exp; } seteuid(pwd_storage.pw_uid); Loading @@ -2982,9 +2983,6 @@ public: } #endif blg.runEventloop(); }catch(libhttppp::HTTPException &e){ std::cerr << e.what() << std::endl; } }catch(std::exception &e){ std::cerr << e.what() << std::endl; } Loading