From aa9cdc4a172cad4aeaeba671720f4720be6a9c61 Mon Sep 17 00:00:00 2001 From: Daniel Albers Date: Tue, 29 Sep 2009 16:00:47 +0200 Subject: [PATCH] disable umask on Windows --- src/core/core.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/core/core.cpp b/src/core/core.cpp index 0b34f297..b24eefb9 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -41,8 +41,11 @@ # include #endif /* Q_OS_WIN32 */ -#include -#include +// umask +#ifndef Q_OS_WIN32 +# include +# include +#endif /* Q_OS_WIN32 */ // ============================== // Custom Events @@ -77,7 +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()); -- 2.20.1