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

Merge pull request #368 from BeccaBecca/master

fs.Lstat(p) to fs.fs.Lstat(p)
This commit is contained in:
chai2010 2018-10-15 20:33:11 +08:00 committed by GitHub
commit fe3ee283b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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