Commit a3bcf9be authored by Elvis Angelaccio's avatar Elvis Angelaccio

Fix creation of tar archives

Usage of QString::compare() breaks the creation of tar archives, because
`zst` is "bigger" than `tar` which means ark would use the `zstd` filter
even when creating a simple tar archive.

BUG: 405136
FIXED-IN: 19.03.80
parent fc4f0e23
......@@ -352,7 +352,7 @@ bool ReadWriteLibarchivePlugin::initializeNewFileWriterFilters(const Compression
qCDebug(ARK) << "Detected lz4 compression for new file";
ret = archive_write_add_filter_lz4(;
} else if (filename().rightRef(3).compare(QLatin1String("zst"), Qt::CaseInsensitive)) {
} else if (filename().right(3).toUpper() == QLatin1String("ZST")) {
qCDebug(ARK) << "Detected zstd compression for new file";
ret = archive_write_add_filter_zstd(;
Markdown is supported
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