From e2c5dbb2cc022034a54b1207310eff43be93ce85 Mon Sep 17 00:00:00 2001 From: luke Date: Mon, 19 Mar 2007 16:42:41 +0000 Subject: Another round of bug-fixes, prompted by test logs from David Schmitt git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2316 980ebf18-57e1-0310-9a29-db15c13687c0 --- lib/puppet/network/handler/filebucket.rb | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'lib/puppet/network/handler') 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 -- cgit