[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc
commit-queue at webkit.org
commit-queue at webkit.org
Wed Dec 22 11:46:02 UTC 2010
The following commit has been merged in the debian/experimental branch:
commit 05c8983a9456e0dd42dcc4c150a1cb32321f5006
Author: commit-queue at webkit.org <commit-queue at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Fri Aug 6 05:08:34 2010 +0000
2010-08-05 Simon Hausmann <simon.hausmann at nokia.com>
Reviewed by Laszlo Gombos.
[Qt] Temporary files should not be created in the current directory
https://bugs.webkit.org/show_bug.cgi?id=43562
Don't create temporary files in the current directory, use QDir::tempPath()
instead, as suggested by the QTemporaryFile documentation.
* platform/qt/FileSystemQt.cpp:
(WebCore::openTemporaryFile):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64816 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index 789d4ab..66ea8bd 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,16 @@
+2010-08-05 Simon Hausmann <simon.hausmann at nokia.com>
+
+ Reviewed by Laszlo Gombos.
+
+ [Qt] Temporary files should not be created in the current directory
+ https://bugs.webkit.org/show_bug.cgi?id=43562
+
+ Don't create temporary files in the current directory, use QDir::tempPath()
+ instead, as suggested by the QTemporaryFile documentation.
+
+ * platform/qt/FileSystemQt.cpp:
+ (WebCore::openTemporaryFile):
+
2010-08-05 François Sausset <sausset at gmail.com>
Reviewed by Kenneth Rohde Christiansen.
diff --git a/WebCore/platform/qt/FileSystemQt.cpp b/WebCore/platform/qt/FileSystemQt.cpp
index 03dfc8f..96c2093 100644
--- a/WebCore/platform/qt/FileSystemQt.cpp
+++ b/WebCore/platform/qt/FileSystemQt.cpp
@@ -116,7 +116,7 @@ Vector<String> listDirectory(const String& path, const String& filter)
CString openTemporaryFile(const char* prefix, PlatformFileHandle& handle)
{
#ifndef QT_NO_TEMPORARYFILE
- QTemporaryFile* tempFile = new QTemporaryFile(QLatin1String(prefix));
+ QTemporaryFile* tempFile = new QTemporaryFile(QDir::tempPath() + QLatin1Char('/') + QLatin1String(prefix));
tempFile->setAutoRemove(false);
QFile* temp = tempFile;
if (temp->open(QIODevice::ReadWrite)) {
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list