X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fcore.cpp;h=b24eefb96bcafddfb9e1341a03a52884b39a7bf6;hb=35967f5d2c26e6c028a4cd573c81edab350bc5ed;hp=ebe1b08a74a40fcefc2d60d4b89f45143c7ef13a;hpb=9b394f92cb61b759d18f9acc6a1125e2396b8cb7;p=quassel.git diff --git a/src/core/core.cpp b/src/core/core.cpp index ebe1b08a..b24eefb9 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -37,9 +37,16 @@ #ifdef Q_OS_WIN32 # include #else +# include # include #endif /* Q_OS_WIN32 */ +// umask +#ifndef Q_OS_WIN32 +# include +# include +#endif /* Q_OS_WIN32 */ + // ============================== // Custom Events // ============================== @@ -73,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());