X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fcore.cpp;h=b24eefb96bcafddfb9e1341a03a52884b39a7bf6;hb=d9f4d3f0eabd3767b4d25438319116f77c158c52;hp=0447a341e60bc1357507f4d408771ca39f27a23d;hpb=c8a95fca86f2ce287f15fd036c0509561736970a;p=quassel.git diff --git a/src/core/core.cpp b/src/core/core.cpp index 0447a341..b24eefb9 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -41,6 +41,12 @@ # include #endif /* Q_OS_WIN32 */ +// umask +#ifndef Q_OS_WIN32 +# include +# include +#endif /* Q_OS_WIN32 */ + // ============================== // Custom Events // ============================== @@ -74,6 +80,9 @@ void Core::destroy() { Core::Core() : _storage(0) { +#ifndef Q_OS_WIN32 + umask(S_IRWXG | S_IRWXO); +#endif /* Q_OS_WIN32 */ _startTime = QDateTime::currentDateTime().toUTC(); // for uptime :) Quassel::loadTranslation(QLocale::system());