2021-09-16 Fred Gleason <fredg@paravelsystems.com>

* Modified the mode of files generated by the
	'SaveWebgetFilesDirectory=' directive 0440 to 0664.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2021-09-16 11:45:53 -04:00
parent e2997427f7
commit 429a41deac
2 changed files with 5 additions and 1 deletions

View File

@ -20802,3 +20802,6 @@
* Incremented the package version to 3.6.2int2.
2021-09-15 Fred Gleason <fredg@paravelsystems.com>
* Added a 'SaveWebgetFilesDirectory=' directive to rd.conf(5).
2021-09-16 Fred Gleason <fredg@paravelsystems.com>
* Modified the mode of files generated by the
'SaveWebgetFilesDirectory=' directive 0440 to 0664.

View File

@ -802,7 +802,8 @@ void MainObject::SaveSourceFile(const QString &filepath) const
// Open Destination File
//
int num=1;
while((dst_fd=open(filename.toUtf8(),O_WRONLY|O_CREAT|O_EXCL,S_IRUSR|S_IRGRP))<0) {
while((dst_fd=open(filename.toUtf8(),O_WRONLY|O_CREAT|O_EXCL,
S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH))<0) {
if(errno!=EEXIST) {
rda->syslog(LOG_WARNING,
"unable to open destination file \"%s\" for SaveWebgetFilesDirectory [%s]",