lib/fs/modules/LinuxMount.rb in manageiq-smartstate-0.3.8 vs lib/fs/modules/LinuxMount.rb in manageiq-smartstate-0.3.9

- old
+ new

@@ -319,12 +319,12 @@ # Each filesystem knows how to check for, # and read its own links. # no_more_links = false until no_more_links - filesys, link_ptr = getFsPathBase(link_ptr) - if filesys.fileSymLink?(link_ptr) - symlink = getSymLink(filesys, link_ptr) + filesys, tmp_link_ptr = getFsPathBase(link_ptr) + if filesys.fileSymLink?(tmp_link_ptr) + symlink = getSymLink(filesys, tmp_link_ptr) link_ptr = symlink[0, 1] == '/' ? symlink : File.join(File.dirname(link_ptr), symlink) else no_more_links = true end end