diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2014-10-06 12:16:27 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2014-10-06 12:16:27 -0500 |
commit | ecd088049d4aa2e8262f4cc1e0ac45e135964229 (patch) | |
tree | 49ed22e9e7852fd3f26854aecf41c96169d59629 /redhat/tdelibs/kdelibs-3.5.13-fix_ktempfile_special_bits.patch | |
parent | 855439d3f99b0c152c33ae76a06cce9853f9b8dd (diff) | |
parent | 01a7863524342e1aec31679e55d08830cc571066 (diff) | |
download | tde-packaging-ecd088049d4aa2e8262f4cc1e0ac45e135964229.tar.gz tde-packaging-ecd088049d4aa2e8262f4cc1e0ac45e135964229.zip |
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tde-packaging
Diffstat (limited to 'redhat/tdelibs/kdelibs-3.5.13-fix_ktempfile_special_bits.patch')
-rw-r--r-- | redhat/tdelibs/kdelibs-3.5.13-fix_ktempfile_special_bits.patch | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/redhat/tdelibs/kdelibs-3.5.13-fix_ktempfile_special_bits.patch b/redhat/tdelibs/kdelibs-3.5.13-fix_ktempfile_special_bits.patch deleted file mode 100644 index 7f21fe176..000000000 --- a/redhat/tdelibs/kdelibs-3.5.13-fix_ktempfile_special_bits.patch +++ /dev/null @@ -1,27 +0,0 @@ -commit 9068fffdf82dc9cf60e83639b3a9b397761304cd -Author: Timothy Pearson <kb9vqf@pearsoncomputing.net> -Date: 1338002515 -0500 - - Fix KTempFile not obeying special bits on file creation - This closes Bug 349 - Add modem category to TDE hardware manager - -diff --git a/tdecore/ktempfile.cpp b/tdecore/ktempfile.cpp -index 2c7b56e..4632f00 100644 ---- a/kdecore/ktempfile.cpp -+++ b/kdecore/ktempfile.cpp -@@ -117,8 +117,12 @@ KTempFile::create(const TQString &filePrefix, const TQString &fileExtension, - // Success! - bOpen = true; - -- // Set uid/gid (necessary for SUID programs) -- fchown(mFd, getuid(), getgid()); -+ uid_t uid = getuid(); -+ uid_t euid = geteuid(); -+ if (uid != euid) { -+ // Set uid/gid (necessary for SUID programs) -+ fchown(mFd, getuid(), getgid()); -+ } - - // Set close on exec - fcntl(mFd, F_SETFD, FD_CLOEXEC); |