Commit 5bbd6274 authored by jan.koester's avatar jan.koester
Browse files

test

parent f10ef975
Loading
Loading
Loading
Loading
+3 −5
Changes for src/blogi.cpp: 3 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -2961,7 +2961,6 @@ public:
            ){
        blogi::Blogi::HttpServer = this;
        libhttppp::HTTPException httpexception;
        try {
        try {
            blogi::Blogi blg(getServerSockets(),debug);
#ifndef Windows
@@ -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);
@@ -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;
        }