diff options
author | Robert Xu <robxu9@gmail.com> | 2012-02-21 19:27:13 -0500 |
---|---|---|
committer | Robert Xu <robxu9@gmail.com> | 2012-02-21 19:27:13 -0500 |
commit | 5d7b5e6defb05f81691d286d40f67260c4733d00 (patch) | |
tree | b2bfcca86b05179cad334dc61c5609e54ac7674d /redhat/dependencies/tqt3/tqt3-3.4.0-umask.patch | |
parent | 580ce2082fe5054c9ad0e4f666cee9b4bfb2d0b6 (diff) | |
parent | a14ac9de2f5843036c9f452f1188979fef17ae6d (diff) | |
download | tde-packaging-5d7b5e6defb05f81691d286d40f67260c4733d00.tar.gz tde-packaging-5d7b5e6defb05f81691d286d40f67260c4733d00.zip |
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tde-packaging
Diffstat (limited to 'redhat/dependencies/tqt3/tqt3-3.4.0-umask.patch')
-rw-r--r-- | redhat/dependencies/tqt3/tqt3-3.4.0-umask.patch | 14 |
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", |