mirror of
https://github.com/drasko/codezero.git
synced 2026-04-01 17:49:05 +02:00
FS0 compiles with the changes, also caught an unparanthesised double-statement
if clause in lookup.c
This commit is contained in:
@@ -74,15 +74,16 @@ struct vnode *generic_vnode_lookup(struct vnode *thisnode, char *path)
|
||||
/* Is this a directory? */
|
||||
if (vfs_isdir(thisnode)) {
|
||||
/* Are there any more path components? */
|
||||
if (path)
|
||||
if (path) {
|
||||
/* Read directory contents */
|
||||
if ((err = (int)d->vnode->ops.readdir(d->vnode)))
|
||||
return err;
|
||||
return PTR_ERR(err);
|
||||
|
||||
/* Search all children one level below. */
|
||||
if ((found = lookup_dentry_children(d, path)))
|
||||
/* Either found, or non-zero error */
|
||||
return found;
|
||||
else
|
||||
} else
|
||||
return thisnode;
|
||||
} else { /* Its a file */
|
||||
if (path) /* There's still path, but not directory */
|
||||
|
||||
Reference in New Issue
Block a user