Commit 7c3522d3 authored by jan.koester's avatar jan.koester
Browse files

tes

parent 0517d806
Loading
Loading
Loading
Loading
+2 −2
Changes for src/blogi.cpp: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -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);
@@ -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);