[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. puppet-0.24.5-rc3-1601-gf8c1b08
James Turnbull
james at lovedthanlost.net
Fri Jan 15 09:08:10 UTC 2010
The following commit has been merged in the upstream branch:
commit d60ea0e52debf03fddb2336704df10589108fe3a
Author: Markus Roberts <Markus at reality.com>
Date: Mon Dec 21 14:10:07 2009 -0800
A slide down the RFC-1123 slope towards MS Windows compatibility and chaos
diff --git a/lib/puppet/network/authstore.rb b/lib/puppet/network/authstore.rb
index a171537..796d3d8 100755
--- a/lib/puppet/network/authstore.rb
+++ b/lib/puppet/network/authstore.rb
@@ -236,15 +236,15 @@ module Puppet
segments = value.split(".")[0..-2]
bits = 8*segments.length
[:ip,:inexact,bits,IPAddr.new((segments+[0,0,0])[0,4].join(".") + "/#{bits}")]
- when /^([a-zA-Z0-9][-\w]*\.)+[-\w]+$/ # a full hostname
- # Change to /^([a-zA-Z][-\w]*\.)+[-\w]+\.?$/ for FQDN support
+ when /^(\w[-\w]*\.)+[-\w]+$/ # a full hostname
+ # Change to /^(\w[-\w]*\.)+[-\w]+\.?$/ for FQDN support
[:domain,:exact,nil,munge_name(value)]
- when /^\*(\.([a-zA-Z][-\w]*)){1,}$/ # *.domain.com
+ when /^\*(\.(\w[-\w]*)){1,}$/ # *.domain.com
host_sans_star = munge_name(value)[1..-1]
[:domain,:inexact,host_sans_star.length,host_sans_star]
- when /\$\d+/ # a backreference pattern ala $1.reductivelabs.com or 192.168.0.$1 or $1.$2
+ when /\$\d+/ # a backreference pattern ala $1.reductivelabs.com or 192.168.0.$1 or $1.$2
[:dynamic,:exact,nil,munge_name(value)]
- when /^[a-zA-Z0-9][-.@\w]*$/ # ? Just like a host name but allow '@'s and ending '.'s
+ when /^\w[-.@\w]*$/ # ? Just like a host name but allow '@'s and ending '.'s
[:opaque,:exact,nil,[value]]
else
raise AuthStoreError, "Invalid pattern %s" % value
diff --git a/lib/puppet/network/handler/fileserver.rb b/lib/puppet/network/handler/fileserver.rb
index 6bc6d9d..7049fb0 100755
--- a/lib/puppet/network/handler/fileserver.rb
+++ b/lib/puppet/network/handler/fileserver.rb
@@ -310,6 +310,7 @@ class Puppet::Network::Handler
mount.info "allowing %s access" % val
mount.allow(val)
rescue AuthStoreError => detail
+ puts detail.backtrace if Puppet[:trace]
raise FileServerError.new(detail.to_s,
count, @configuration.file)
end
--
Puppet packaging for Debian
More information about the Pkg-puppet-devel
mailing list