mirror of
https://github.com/drasko/codezero.git
synced 2026-03-11 23:03:15 +01:00
Fixed wrong directory name issue, strlen() was off by one.
This commit is contained in:
@@ -81,6 +81,8 @@ struct vnode *generic_vnode_lookup(struct vnode *thisnode,
|
||||
* where path = { "//comp1/comp2", "/", "/comp1/comp2", "comp1/comp2" }
|
||||
*/
|
||||
|
||||
printf("Looking up: %s\n", pdata->path);
|
||||
|
||||
/* Handle the special root case */
|
||||
if (pdata->root)
|
||||
component = pathdata_handle_root(pdata);
|
||||
|
||||
@@ -49,6 +49,7 @@ int vfs_create(struct tcb *task, struct pathdata *pdata, unsigned int mode)
|
||||
char *nodename;
|
||||
int err;
|
||||
|
||||
printf("%s: %s\n", __FUNCTION__, pdata->path);
|
||||
/* The last component is to be created */
|
||||
nodename = splitpath_end(&pdata->path, '/');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user