summaryrefslogtreecommitdiffstats
path: root/redhat/dependencies/tqt3/tqt3-3.4.0-umask.patch
diff options
context:
space:
mode:
authorFrancois Andriot <francois.andriot@free.fr>2012-02-16 19:43:47 +0100
committerFrancois Andriot <francois.andriot@free.fr>2012-02-16 19:43:47 +0100
commit5c0bbe731541c633c114f2f31fb38a68b370e18f (patch)
tree4e0b0fadb73869604ad521cc7b4cd83c635e247f /redhat/dependencies/tqt3/tqt3-3.4.0-umask.patch
parent4a3f0ef6b92d4a30e310be5912896ca9bfd0f3c5 (diff)
downloadtde-packaging-5c0bbe731541c633c114f2f31fb38a68b370e18f.tar.gz
tde-packaging-5c0bbe731541c633c114f2f31fb38a68b370e18f.zip
[RHEL/Fedora] Moves qt3 and tqt3 to the correct location
Diffstat (limited to 'redhat/dependencies/tqt3/tqt3-3.4.0-umask.patch')
-rw-r--r--redhat/dependencies/tqt3/tqt3-3.4.0-umask.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/redhat/dependencies/tqt3/tqt3-3.4.0-umask.patch b/redhat/dependencies/tqt3/tqt3-3.4.0-umask.patch
new file mode 100644
index 000000000..9c24f9903
--- /dev/null
+++ b/redhat/dependencies/tqt3/tqt3-3.4.0-umask.patch
@@ -0,0 +1,14 @@
+--- tqt3/src/tools/qsettings.cpp.umask 2012-02-13 19:10:01.000000000 +0100
++++ tqt3/src/tools/qsettings.cpp 2012-02-13 19:28:00.802555882 +0100
+@@ -997,7 +997,10 @@
+ #endif
+
+ TQFile file( filename + ".tmp" );
+- if (! file.open(IO_WriteOnly)) {
++ mode_t old_umask = umask(0022);
++ bool f = file.open(IO_WriteOnly);
++ umask(old_umask);
++ if (! f) {
+
+ #ifdef QT_CHECK_STATE
+ qWarning("TQSettings::sync: failed to open '%s' for writing",