From b4359e8bf97799f83dc1ca62744db7cfcc81bc87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Mon, 24 Jun 2013 19:50:32 +0200 Subject: RPM Packaging: rename directories --- ...kdelibs-3.5.13-fix_ktempfile_special_bits.patch | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 redhat/tdelibs/kdelibs-3.5.13-fix_ktempfile_special_bits.patch (limited to 'redhat/tdelibs/kdelibs-3.5.13-fix_ktempfile_special_bits.patch') 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 new file mode 100644 index 000000000..7f21fe176 --- /dev/null +++ b/redhat/tdelibs/kdelibs-3.5.13-fix_ktempfile_special_bits.patch @@ -0,0 +1,27 @@ +commit 9068fffdf82dc9cf60e83639b3a9b397761304cd +Author: Timothy Pearson +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); -- cgit v1.2.1