1
0
mirror of https://github.com/chai2010/advanced-go-programming-book.git synced 2025-05-24 12:32:21 +00:00

fs.Lstat(p) to fs.fs.Lstat(p)

This commit is contained in:
becca 2018-10-15 19:48:24 +08:00
parent 5c1bc9a5d2
commit d65bad0975

View File

@ -376,7 +376,7 @@ type gatefs struct {
func (fs gatefs) Lstat(p string) (os.FileInfo, error) { func (fs gatefs) Lstat(p string) (os.FileInfo, error) {
fs.enter() fs.enter()
defer fs.leave() defer fs.leave()
return fs.Lstat(p) return fs.fs.Lstat(p)
} }
``` ```