Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use removeRecursively instead of executing rm -rf
  • Loading branch information
pvuorela committed May 24, 2017
1 parent 309ebec commit aec4829
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libssu/sandbox.cpp
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit aec4829

Please sign in to comment.