summaryrefslogtreecommitdiffstats
path: root/lib/puppet/network/handler
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-03-19 16:42:41 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-03-19 16:42:41 +0000
commite2c5dbb2cc022034a54b1207310eff43be93ce85 (patch)
tree53c71082cf67f6847f8611fcd5f09fb11c9a8d37 /lib/puppet/network/handler
parent92bad78a6aebb9abeac8e734b5ce56b88e21cdda (diff)
downloadpuppet-e2c5dbb2cc022034a54b1207310eff43be93ce85.tar.gz
puppet-e2c5dbb2cc022034a54b1207310eff43be93ce85.tar.xz
puppet-e2c5dbb2cc022034a54b1207310eff43be93ce85.zip
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
Diffstat (limited to 'lib/puppet/network/handler')
-rwxr-xr-xlib/puppet/network/handler/filebucket.rb12
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