Skip to content

Commit

Permalink
mytharchivehelper: quote the file names passed to mythutil
Browse files Browse the repository at this point in the history
This fixes a bug were copying files using mythutil would fail if the file names
passed as arguments contained spaces and were not delimited with quotes.
  • Loading branch information
Paul Harrison committed Jul 31, 2013
1 parent 1ee7744 commit 87b11fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythplugins/mytharchive/mytharchivehelper/main.cpp
Expand Up @@ -146,7 +146,7 @@ NativeArchive::~NativeArchive(void)

bool NativeArchive::copyFile(const QString &source, const QString &destination)
{
QString command = QString("mythutil --copyfile --infile %1 --outfile %2")
QString command = QString("mythutil --copyfile --infile '%1' --outfile '%2'")
.arg(source).arg(destination);
uint res = myth_system(command);
if (res != GENERIC_EXIT_OK)
Expand Down

0 comments on commit 87b11fb

Please sign in to comment.