diff --git a/ChangeLog b/ChangeLog index ab58f234..cb65be1e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -20802,3 +20802,6 @@ * Incremented the package version to 3.6.2int2. 2021-09-15 Fred Gleason * Added a 'SaveWebgetFilesDirectory=' directive to rd.conf(5). +2021-09-16 Fred Gleason + * Modified the mode of files generated by the + 'SaveWebgetFilesDirectory=' directive 0440 to 0664. diff --git a/web/webget/webget.cpp b/web/webget/webget.cpp index 572682d1..83535b9c 100644 --- a/web/webget/webget.cpp +++ b/web/webget/webget.cpp @@ -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]",