Loading src/blogi.cpp +4 −1 Changes for src/blogi.cpp: 4 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -2975,8 +2975,11 @@ public: const char *username = "blogi"; if(getpwnam_r(username, &pwd_storage, buffer, sizeof(buffer), &result)!=0 || result==NULL){ throw libhttppp::HTTPException[libhttppp::] << "can'T change user !"; libhttppp::HTTPException exp; exp << "can'T change user !"; throw exp; } seteuid(pwd_storage.pw_uid); setegid(pwd_storage.pw_gid); } Loading Loading
src/blogi.cpp +4 −1 Changes for src/blogi.cpp: 4 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -2975,8 +2975,11 @@ public: const char *username = "blogi"; if(getpwnam_r(username, &pwd_storage, buffer, sizeof(buffer), &result)!=0 || result==NULL){ throw libhttppp::HTTPException[libhttppp::] << "can'T change user !"; libhttppp::HTTPException exp; exp << "can'T change user !"; throw exp; } seteuid(pwd_storage.pw_uid); setegid(pwd_storage.pw_gid); } Loading