diff options
Diffstat (limited to 'weed/mount/weedfs_dir_lookup.go')
| -rw-r--r-- | weed/mount/weedfs_dir_lookup.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/weed/mount/weedfs_dir_lookup.go b/weed/mount/weedfs_dir_lookup.go index b74948f65..477cfad0a 100644 --- a/weed/mount/weedfs_dir_lookup.go +++ b/weed/mount/weedfs_dir_lookup.go @@ -16,6 +16,10 @@ import ( func (wfs *WFS) Lookup(cancel <-chan struct{}, header *fuse.InHeader, name string, out *fuse.EntryOut) (code fuse.Status) { + if s := checkName(name); s != fuse.OK { + return s + } + dirPath := wfs.inodeToPath.GetPath(header.NodeId) fullFilePath := dirPath.Child(name) @@ -48,7 +52,7 @@ func (wfs *WFS) Lookup(cancel <-chan struct{}, header *fuse.InHeader, name strin inode := wfs.inodeToPath.GetInode(fullFilePath) - wfs.outputEntry(out, inode, localEntry) + wfs.outputFilerEntry(out, inode, localEntry) return fuse.OK |
