Ensure debug archive contents are readable by any user

Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
This commit is contained in:
Claudio Cambra 2022-07-19 14:19:33 +02:00
parent db90f5b714
commit bb034b8bf4

View file

@ -114,7 +114,9 @@ void createDebugArchive(const QString &filename)
{
const auto entries = createFileList();
// TODO: Port away from this private API (best to port to KArchive)
QZipWriter zip(filename);
zip.setCreationPermissions(zip.creationPermissions() | QFile::ReadOther);
for (const auto &entry : entries) {
if (entry.localFilename.isEmpty()) {
zip.addDirectory(entry.zipFilename);