diff options
Diffstat (limited to 'lib/puppet/storage.rb')
-rw-r--r-- | lib/puppet/storage.rb | 4 |
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" |