diff options
-rw-r--r-- | src/lib/vfs.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/vfs.zig b/src/lib/vfs.zig index a687c43..c70a375 100644 --- a/src/lib/vfs.zig +++ b/src/lib/vfs.zig @@ -238,7 +238,7 @@ pub fn find(path: []const u8) ?*Inode { else => null, // Not a directory (or directory hook). } orelse return null; - if (mem.eql(u8, component.path, (it.last() orelse return null).path)) { + if (mem.eql(u8, component.path, path)) { return inode; } resource = inode.resource; |