FileSystem::uncheckedRenameReplace(fpath, rpath, &error);
}
}
+
+static void preserveGroupOwnership(const QString& fileName, const QFileInfo& fi)
+{
+#ifdef Q_OS_UNIX
+ chown(fileName.toLocal8Bit().constData(), -1, fi.groupId());
+#else
+ Q_UNUSED(fileName);
+ Q_UNUSED(fi);
+#endif
+}
} // end namespace
-
void PropagateDownloadFileQNAM::transmissionChecksumValidated(const QByteArray &checksumType, const QByteArray &checksum)
{
- const auto theContentChecksumType = QByteArray("SHA1");
+ const auto theContentChecksumType = contentChecksumType();
// Reuse transmission checksum as content checksum.
//