Commit 28b7460f authored by Jonathan Thomas's avatar Jonathan Thomas
Browse files

Properly quote filenames given to dpkg, or else filenames containing spaces will be

improperly truncated, causing dpkg to fail.

BUG:290510
parent b7b158e8
......@@ -590,8 +590,8 @@ void QAptWorker::installDebFile(const QString &fileName)
}
m_dpkgProcess = new QProcess(this);
QString program = QLatin1Literal("dpkg") %
QLatin1Literal(" -i ") % fileName;
QString program = QLatin1String("dpkg") %
QLatin1String(" -i ") % '"' % fileName % '"';
setenv("PATH", "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", 1);
setenv("DEBIAN_FRONTEND", "passthrough", 1);
setenv("DEBCONF_PIPE", "/tmp/qapt-sock", 1);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment