lib/fs/modules/LinuxMount.rb in manageiq-smartstate-0.5.6 vs lib/fs/modules/LinuxMount.rb in manageiq-smartstate-0.5.7
- old
+ new
@@ -321,10 +321,10 @@
#
no_more_links = false
until no_more_links
filesys, link_ptr = getFsPathBase(link_ptr)
if filesys.fileSymLink?(link_ptr)
- symlink = getSymLink(filesys, linkptr)
+ symlink = getSymLink(filesys, link_ptr)
link_ptr = symlink[0, 1] == '/' ? symlink : File.join(File.dirname(link_ptr), symlink)
else
no_more_links = true
end
end