fix: symlink not showing corretly

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
This commit is contained in:
Henrique Dias 2019-01-04 23:08:34 +00:00
parent 7d263dbabd
commit 1967bc8bd5
2 changed files with 2 additions and 2 deletions

View File

@ -205,7 +205,7 @@ func (i *FileInfo) readListing(checker rules.Checker) error {
if strings.HasPrefix(f.Mode().String(), "L") {
// It's a symbolic link. We try to follow it. If it doesn't work,
// we stay with the link information instead if the target's.
info, err := os.Stat(name)
info, err := i.Fs.Stat(path)
if err == nil {
f = info
}

@ -1 +1 @@
Subproject commit 3e14855e4f9b5719164f79b5ac8ccdf019f6429e
Subproject commit a71029771582dbc85baa5a4eb984d800311b01c5