Commit 24144a77 authored by jan.koester's avatar jan.koester
Browse files

test

parent 3d5c4ef6
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
@@ -2963,7 +2963,7 @@ public:
        libhttppp::HTTPException httpexception;
        try {
            blogi::Blogi blg(getServerSockets(),debug);
#ifndef Windows
#ifndef _WIN32
            if(!debug) {
                if(getuid()==0) {
                    struct passwd pwd_storage;
@@ -2989,7 +2989,7 @@ public:
    };
};

#ifndef Windows
#ifndef _WIN32
void logFiles(const char *path, int fd) {
    int pfd = open(path, O_APPEND | O_CREAT | O_WRONLY, 0660);

@@ -3125,7 +3125,7 @@ int main(int argc, char* argv[]) {
               logFiles("/var/log/blogi/access.log",STDOUT_FILENO);
               logFiles("/var/log/blogi/error.log",STDERR_FILENO);

              // ensureConfigGroupWritable(config);
               ensureConfigGroupWritable(config);

            }catch(std::exception &e){
                std::cerr << e.what() << std::endl;