From 9763eb1822a7e4e9220c2cd006b73c25af53f4f5 Mon Sep 17 00:00:00 2001 From: albator Date: Sun, 4 Sep 2011 16:45:16 +0200 Subject: Initial QT3 build for RHEL 6 Based on original RHEL 6 qt3 3.3.8b RPM. --- redhat/dependencies/qt3/qt-x11-free-3.3.7-umask.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 redhat/dependencies/qt3/qt-x11-free-3.3.7-umask.patch (limited to 'redhat/dependencies/qt3/qt-x11-free-3.3.7-umask.patch') 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", -- cgit v1.2.1