Commit 23f21045 authored by jan.koester's avatar jan.koester
Browse files

test

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