From aec48298f403393ade446731547eefbb84b7e115 Mon Sep 17 00:00:00 2001 From: Pekka Vuorela Date: Wed, 24 May 2017 10:31:47 +0300 Subject: [PATCH] Use removeRecursively instead of executing rm -rf --- libssu/sandbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libssu/sandbox.cpp b/libssu/sandbox.cpp index fb8b72d..8e5a0c9 100644 --- a/libssu/sandbox.cpp +++ b/libssu/sandbox.cpp @@ -79,7 +79,7 @@ Sandbox::~Sandbox() } if (!m_tempDir.isEmpty() && QFileInfo(m_tempDir).exists()) { - if (QProcess::execute("rm", QStringList() << "-rf" << m_tempDir) != 0) { + if (!QDir(m_tempDir).removeRecursively()) { qWarning("%s: Failed to remove temporary directory", Q_FUNC_INFO); } }