diff options
author | Kristian Vlaardingerbroek <kristian.vlaardingerbroek@gmail.com> | 2013-01-29 17:05:02 +0100 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2013-04-12 11:49:11 -0700 |
commit | 82f099ce46de029ee756cc497910262262c15b61 (patch) | |
tree | ca19416910b361a073c3a3079a640ba0ab923b47 /lib/chef/provider/mount/mount.rb | |
parent | e58ed68e8886f0f250d5f6ebd9f44a9425da66e6 (diff) | |
download | chef-82f099ce46de029ee756cc497910262262c15b61.tar.gz |
Fix regular expression for symlinks in device_mount_regex
Diffstat (limited to 'lib/chef/provider/mount/mount.rb')
-rw-r--r-- | lib/chef/provider/mount/mount.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/mount/mount.rb b/lib/chef/provider/mount/mount.rb index 9a85a9058a..593a09ecbe 100644 --- a/lib/chef/provider/mount/mount.rb +++ b/lib/chef/provider/mount/mount.rb @@ -225,7 +225,7 @@ class Chef # ignore trailing slash Regexp.escape(device_real)+"/?" elsif ::File.symlink?(device_real) - "(?:#{Regexp.escape(device_real)})|(?:#{Regexp.escape(::File.readlink(device_real))})" + "(?:#{Regexp.escape(device_real)}|#{Regexp.escape(::File.readlink(device_real))})" else Regexp.escape(device_real) end |