2018-10-17 Fred Gleason <fredg@paravelsystems.com>

* Added an 'ExportedFileMode=' parameter to the '[Tuning]' section
	of rd.conf(5).
This commit is contained in:
Fred Gleason
2018-10-17 14:35:53 -04:00
parent f060189fca
commit 0be9c9ee4a
8 changed files with 35 additions and 4 deletions

View File

@@ -336,6 +336,10 @@ void MainObject::RunUpload(CatchEvent *evt)
catch_config->logXloadDebugData()))) {
case RDUpload::ErrorOk:
catch_connect->setExitCode(evt->id(),RDRecording::Ok,tr("Ok"));
if(QUrl(evt->resolvedUrl()).protocol().lower()=="file") {
chmod(QUrl(evt->resolvedUrl()).path(),
catch_config->tuningExportedFileMode());
}
qApp->processEvents();
LogLine(RDConfig::LogInfo,QString().
sprintf("finished upload of %s to %s, id=%d",