puppetlabs/puppet — pull request #1002 by zaphod42 (2012-08-03 18:47:54+00:00)
Title: (#15471, #15539) Ensure non-root can read report summary

The security fixes in 2.7.18 regressed the permissions for the
last_run_summary.yaml file so that only root can read it. This causes a problem
for monitoring systems which watch this file and normally do not run as root.
The problem was made worse by a bug in the code (#15539) that caused setting
the mode specified in the puppet.conf for the file to not work. This pull
request fixes both issues by changing the default mode for
last_run_summary.yaml and also backporting a fix from the master branch for
setting the mode as specified in the puppet.conf file. For the backported save
function to work, this also backports a fix to the replace_file function so
that it will work on windows.