Details
Description
How to reproduce:
- Create a new Mailing (civimail)
- Upload a file attachment in the "attachment" tab (not in the WYSIWYG), ex: attaching a PDF to a mailing.
Result: the uploaded file in civicrm/custom/ will be owned by www-data.www-data and mode will be 0600.
This causes problems when running cron as another user than www-data. For example, the Aegir cron runs as the "aegir" unix user. This user must at least be able to read the file.