summaryrefslogtreecommitdiffstats
path: root/lib/puppet/file_serving/fileset.rb
diff options
context:
space:
mode:
authorDavid Schmitt <david@dasz.at>2010-05-17 16:35:40 +0200
committertest branch <puppet-dev@googlegroups.com>2010-02-17 06:50:53 -0800
commit58100ed223de98af93f2e1a4e6a3c57e958ef94c (patch)
treedc7cd96d02252061cca6b9e12cab7855e4694d1f /lib/puppet/file_serving/fileset.rb
parent1c016a1ed457af40fc627fa14cf3f93d1671f483 (diff)
downloadpuppet-58100ed223de98af93f2e1a4e6a3c57e958ef94c.tar.gz
puppet-58100ed223de98af93f2e1a4e6a3c57e958ef94c.tar.xz
puppet-58100ed223de98af93f2e1a4e6a3c57e958ef94c.zip
Relax path qualification check on FileServing::Fileset
Diffstat (limited to 'lib/puppet/file_serving/fileset.rb')
-rw-r--r--lib/puppet/file_serving/fileset.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/file_serving/fileset.rb b/lib/puppet/file_serving/fileset.rb
index a66d9356f..41765164e 100644
--- a/lib/puppet/file_serving/fileset.rb
+++ b/lib/puppet/file_serving/fileset.rb
@@ -59,7 +59,7 @@ class Puppet::FileServing::Fileset
end
def initialize(path, options = {})
- raise ArgumentError.new("Fileset paths must be fully qualified") unless path =~ /^#{::File::SEPARATOR}/
+ raise ArgumentError.new("Fileset paths must be fully qualified") unless File.expand_path(path) == path
@path = path