mirror of
https://github.com/drasko/codezero.git
synced 2026-04-01 09:39:04 +02:00
Another minor fix in lookup.c
This commit is contained in:
@@ -76,7 +76,7 @@ struct vnode *generic_vnode_lookup(struct vnode *thisnode, char *path)
|
||||
/* Are there any more path components? */
|
||||
if (path) {
|
||||
/* Read directory contents */
|
||||
if ((err = (int)d->vnode->ops.readdir(d->vnode)))
|
||||
if ((err = d->vnode->ops.readdir(d->vnode)) < 0)
|
||||
return PTR_ERR(err);
|
||||
|
||||
/* Search all children one level below. */
|
||||
|
||||
Reference in New Issue
Block a user