summaryrefslogtreecommitdiffstats
path: root/redhat/dependencies/qt3/qt-x11-free-3.3.7-umask.patch
diff options
context:
space:
mode:
authoralbator <albator@aria.vtf>2011-09-04 16:45:16 +0200
committeralbator <albator@aria.vtf>2011-09-04 16:45:16 +0200
commit9763eb1822a7e4e9220c2cd006b73c25af53f4f5 (patch)
tree1adcbb55194d9650157e7160236ac8a78b7e4f21 /redhat/dependencies/qt3/qt-x11-free-3.3.7-umask.patch
parent8bb54d3c34809687b683704dbea4efdd7e344740 (diff)
downloadtde-packaging-9763eb1822a7e4e9220c2cd006b73c25af53f4f5.tar.gz
tde-packaging-9763eb1822a7e4e9220c2cd006b73c25af53f4f5.zip
Initial QT3 build for RHEL 6
Based on original RHEL 6 qt3 3.3.8b RPM.
Diffstat (limited to 'redhat/dependencies/qt3/qt-x11-free-3.3.7-umask.patch')
-rw-r--r--redhat/dependencies/qt3/qt-x11-free-3.3.7-umask.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/redhat/dependencies/qt3/qt-x11-free-3.3.7-umask.patch b/redhat/dependencies/qt3/qt-x11-free-3.3.7-umask.patch
new file mode 100644
index 000000000..f2351909f
--- /dev/null
+++ b/redhat/dependencies/qt3/qt-x11-free-3.3.7-umask.patch
@@ -0,0 +1,14 @@
+--- qt-x11-free-3.3.7/src/tools/qsettings.cpp.tn 2006-11-09 20:53:25.000000000 +0100
++++ qt-x11-free-3.3.7/src/tools/qsettings.cpp 2006-11-09 20:59:53.000000000 +0100
+@@ -994,7 +994,10 @@
+ #endif
+
+ QFile 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("QSettings::sync: failed to open '%s' for writing",