projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
core defaults to safer umask
[quassel.git]
/
src
/
core
/
core.cpp
diff --git
a/src/core/core.cpp
b/src/core/core.cpp
index
0447a34
..
0b34f29
100644
(file)
--- a/
src/core/core.cpp
+++ b/
src/core/core.cpp
@@
-41,6
+41,9
@@
# include <termios.h>
#endif /* Q_OS_WIN32 */
# include <termios.h>
#endif /* Q_OS_WIN32 */
+#include <sys/types.h>
+#include <sys/stat.h>
+
// ==============================
// Custom Events
// ==============================
// ==============================
// Custom Events
// ==============================
@@
-74,6
+77,7
@@
void Core::destroy() {
Core::Core()
: _storage(0)
{
Core::Core()
: _storage(0)
{
+ umask(S_IRWXG | S_IRWXO);
_startTime = QDateTime::currentDateTime().toUTC(); // for uptime :)
Quassel::loadTranslation(QLocale::system());
_startTime = QDateTime::currentDateTime().toUTC(); // for uptime :)
Quassel::loadTranslation(QLocale::system());