projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
abfef57
)
disable umask on Windows
author
Daniel Albers
<daniel@lbers.com>
Tue, 29 Sep 2009 14:00:47 +0000
(16:00 +0200)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Tue, 29 Sep 2009 14:15:16 +0000
(16:15 +0200)
src/core/core.cpp
patch
|
blob
|
history
diff --git
a/src/core/core.cpp
b/src/core/core.cpp
index
0b34f29
..
b24eefb
100644
(file)
--- a/
src/core/core.cpp
+++ b/
src/core/core.cpp
@@
-41,8
+41,11
@@
# include <termios.h>
#endif /* Q_OS_WIN32 */
# include <termios.h>
#endif /* Q_OS_WIN32 */
-#include <sys/types.h>
-#include <sys/stat.h>
+// umask
+#ifndef Q_OS_WIN32
+# include <sys/types.h>
+# include <sys/stat.h>
+#endif /* Q_OS_WIN32 */
// ==============================
// Custom Events
// ==============================
// Custom Events
@@
-77,7
+80,9
@@
void Core::destroy() {
Core::Core()
: _storage(0)
{
Core::Core()
: _storage(0)
{
+#ifndef Q_OS_WIN32
umask(S_IRWXG | S_IRWXO);
umask(S_IRWXG | S_IRWXO);
+#endif /* Q_OS_WIN32 */
_startTime = QDateTime::currentDateTime().toUTC(); // for uptime :)
Quassel::loadTranslation(QLocale::system());
_startTime = QDateTime::currentDateTime().toUTC(); // for uptime :)
Quassel::loadTranslation(QLocale::system());