Commit c59f5882 authored by jan.koester's avatar jan.koester
Browse files

test

parent 70d675f2
Loading
Loading
Loading
Loading
+3 −3
Changes for src/blogi.cpp: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -2966,12 +2966,12 @@ public:

            try{
                blogi::Blogi blg(getServerSockets(),debug);
#ifndef Windows
#ifndef Windows/*
                if(!debug) {
                    if(getuid()==0) {
                        struct passwd pwd_storage;
                        char buffer[1024];
                        struct passwd *result = NULL;
                        struct passwd *result = nullptr;
                        const char *username = "blogi";

                        if(getpwnam_r(username, &pwd_storage, buffer, sizeof(buffer), &result)!=0 || result==NULL){
@@ -2983,7 +2983,7 @@ public:
                        seteuid(pwd_storage.pw_uid);
                        setegid(pwd_storage.pw_gid);
                    }
                }
                }*/
#endif
                blg.runEventloop();
            }catch(libhttppp::HTTPException &e){