summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-03-03 22:29:06 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-03-03 22:29:06 +0000
commitbe4d3fdb9ae4b3495e13e7928039e8bd7a608188 (patch)
tree332bde335badeb1153b48abad4444310ab3b6354 /lib/puppet
parentf2ea9b7840adedcf3f99b222f6f8fa741ea64650 (diff)
downloadpuppet-be4d3fdb9ae4b3495e13e7928039e8bd7a608188.tar.gz
puppet-be4d3fdb9ae4b3495e13e7928039e8bd7a608188.tar.xz
puppet-be4d3fdb9ae4b3495e13e7928039e8bd7a608188.zip
fixing the mode of the yaml file
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@977 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/storage.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/puppet/storage.rb b/lib/puppet/storage.rb
index b9eb48d3a..a309de63c 100644
--- a/lib/puppet/storage.rb
+++ b/lib/puppet/storage.rb
@@ -94,7 +94,9 @@ module Puppet
Puppet.info "Creating state file %s" % Puppet[:statefile]
end
- Puppet::Util.writelock(Puppet[:statefile], 0600) do |file|
+ # FIXME This should be done as the puppet user, so that it isn't
+ # constantly chowned
+ Puppet::Util.writelock(Puppet[:statefile], 0660) do |file|
file.print YAML.dump(@@state)
end
Puppet.debug "Stored state"