Fixed wrong directory name issue, strlen() was off by one.

This commit is contained in:
Bahadir Balban
2008-04-15 01:51:13 +01:00
parent a9420d3dc9
commit fb249b0c5b
5 changed files with 6 additions and 3 deletions

View File

@@ -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);

View File

@@ -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, '/');