diff --git a/src/pkg/os/file.go b/src/pkg/os/file.go index 1f1d86f4e29..75cc048517a 100644 --- a/src/pkg/os/file.go +++ b/src/pkg/os/file.go @@ -315,7 +315,7 @@ func (file *File) Readdir(count int) (dirs []Dir, err Error) { } dirs = make([]Dir, len(names)); for i, filename := range names { - dirp, err := Stat(dirname+filename); + dirp, err := Lstat(dirname+filename); if dirp == nil || err != nil { dirs[i].Name = filename; // rest is already zeroed out } else {