core defaults to safer umask
authorDaniel Albers <daniel@lbers.com>
Tue, 29 Sep 2009 11:18:17 +0000 (13:18 +0200)
committerDaniel Albers <daniel@lbers.com>
Tue, 29 Sep 2009 12:17:37 +0000 (14:17 +0200)
Fixes #804

src/core/core.cpp

index 0447a34..0b34f29 100644 (file)
@@ -41,6 +41,9 @@
 #  include <termios.h>
 #endif /* Q_OS_WIN32 */
 
+#include <sys/types.h>
+#include <sys/stat.h>
+
 // ==============================
 //  Custom Events
 // ==============================
@@ -74,6 +77,7 @@ void Core::destroy() {
 Core::Core()
   : _storage(0)
 {
+  umask(S_IRWXG | S_IRWXO);
   _startTime = QDateTime::currentDateTime().toUTC();  // for uptime :)
 
   Quassel::loadTranslation(QLocale::system());