diff options
author | François Andriot <[email protected]> | 2015-04-12 10:11:01 +0200 |
---|---|---|
committer | François Andriot <[email protected]> | 2015-04-12 10:11:01 +0200 |
commit | a4937b110c2c19699a179e4ae17b5d3864168561 (patch) | |
tree | 5c54e70b81bb074f994a678e667231cddc88892f /redhat/dependencies/qt3/patches/3.5.13.2/qt-x11-free-3.3.7-umask.patch | |
parent | bb94b933beb07ad9ebe9af255ee2fa8d91df7896 (diff) | |
download | tde-packaging-a4937b110c2c19699a179e4ae17b5d3864168561.tar.gz tde-packaging-a4937b110c2c19699a179e4ae17b5d3864168561.zip |
RPM Packaging: update QT3
Diffstat (limited to 'redhat/dependencies/qt3/patches/3.5.13.2/qt-x11-free-3.3.7-umask.patch')
-rw-r--r-- | redhat/dependencies/qt3/patches/3.5.13.2/qt-x11-free-3.3.7-umask.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/redhat/dependencies/qt3/patches/3.5.13.2/qt-x11-free-3.3.7-umask.patch b/redhat/dependencies/qt3/patches/3.5.13.2/qt-x11-free-3.3.7-umask.patch new file mode 100644 index 000000000..f2351909f --- /dev/null +++ b/redhat/dependencies/qt3/patches/3.5.13.2/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", |