diff --git a/lib/vagrant-sshfs/cap/host/linux/sshfs_reverse_mount.rb b/lib/vagrant-sshfs/cap/host/linux/sshfs_reverse_mount.rb index 48ba22d..fadc012 100644 --- a/lib/vagrant-sshfs/cap/host/linux/sshfs_reverse_mount.rb +++ b/lib/vagrant-sshfs/cap/host/linux/sshfs_reverse_mount.rb @@ -14,6 +14,7 @@ def self.sshfs_reverse_is_folder_mounted(env, opts) hostpath = opts[:hostpath].dup hostpath.gsub!("'", "'\\\\''") hostpath = hostpath.chomp('/') # remove trailing / if exists + hostpath = File.expand_path(hostpath) # get the absolute path of the file mounts = File.open('/proc/mounts', 'r') mounts.each_line do |line| if line.split()[1] == hostpath