Update launcher/archive/ArchiveWriter.cpp

Co-authored-by: Seth Flynn <getchoo@tuta.io>
Signed-off-by: Alexandru Ionut Tripon <alexandru.tripon97@gmail.com>
This commit is contained in:
Alexandru Ionut Tripon
2025-11-13 12:52:00 +02:00
committed by Trial97
parent a17908e078
commit 67a5cc9b8d

View File

@@ -104,7 +104,7 @@ bool ArchiveWriter::addFile(const QString& fileName, const QString& fileDest)
if (stat(cpath, &st) == 0) {
archive_entry_copy_stat(entry, &st);
}
archive_entry_set_perm(entry, fileInfo.permissions() & 0777);
archive_entry_set_perm(entry, fileInfo.permissions());
if (fileInfo.isSymLink()) {
auto target = fileInfo.symLinkTarget().toUtf8();