mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Ensure debug archive contents are readable by any user
Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
This commit is contained in:
parent
db90f5b714
commit
bb034b8bf4
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user