summaryrefslogtreecommitdiff
path: root/lib/chef/provider/mount/mount.rb
diff options
context:
space:
mode:
authorEric Herot <eric.github@herot.com>2014-07-30 11:54:45 -0400
committerEric Herot <eric.github@herot.com>2014-07-30 11:54:45 -0400
commit1ec192b1253966ecf0626fec11eb07f71345c6c2 (patch)
tree27197b7dfe5b94264f7442d340115b8112142de2 /lib/chef/provider/mount/mount.rb
parent641628d4ce034a59b427278e1b359c25629e5b58 (diff)
downloadchef-1ec192b1253966ecf0626fec11eb07f71345c6c2.tar.gz
Add word boundary to mount point regexp in mount mounted function
Diffstat (limited to 'lib/chef/provider/mount/mount.rb')
-rw-r--r--lib/chef/provider/mount/mount.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/mount/mount.rb b/lib/chef/provider/mount/mount.rb
index 06a3d52812..207b0cde6c 100644
--- a/lib/chef/provider/mount/mount.rb
+++ b/lib/chef/provider/mount/mount.rb
@@ -85,7 +85,7 @@ class Chef
shell_out!("mount").stdout.each_line do |line|
case line
- when /^#{device_mount_regex}\s+on\s+#{Regexp.escape(real_mount_point)}/
+ when /^#{device_mount_regex}\s+on\s+#{Regexp.escape(real_mount_point)}\s/
mounted = true
Chef::Log.debug("Special device #{device_logstring} mounted as #{real_mount_point}")
when /^([\/\w])+\son\s#{Regexp.escape(real_mount_point)}\s+/