diff options
Diffstat (limited to 'lib/puppet/network/handler/filebucket.rb')
-rwxr-xr-x | lib/puppet/network/handler/filebucket.rb | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/puppet/network/handler/filebucket.rb b/lib/puppet/network/handler/filebucket.rb index 96b9a1e9a..f0d389aea 100755 --- a/lib/puppet/network/handler/filebucket.rb +++ b/lib/puppet/network/handler/filebucket.rb @@ -98,9 +98,11 @@ class Puppet::Network::Handler # :nodoc: self.info msg # ...then just create the file - File.open(bfile, File::WRONLY|File::CREAT, 0440) { |of| - of.print contents - } + Puppet::Util.withumask(0007) do + File.open(bfile, File::WRONLY|File::CREAT, 0440) { |of| + of.print contents + } + end # Write the path to the paths file. add_path(path, pathpath) @@ -132,6 +134,10 @@ class Puppet::Network::Handler # :nodoc: end end + def paths(md5) + self.class(@path, md5) + end + def to_s self.name end |