mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 04:55:48 +03: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
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue