X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Fvfs%2Fdir.c;h=8cc3fa84f7eac7e7636c073b26ec48b005981085;hb=7b8c541cd83b70296325dbbf047d682fd7b03c22;hp=64c5d3786665e4fba131aa97240dc50e0532c92f;hpb=6e1cf1d50bca85f01b5f802b1a76f090e362bf05;p=tpg%2Facess2.git diff --git a/Kernel/vfs/dir.c b/Kernel/vfs/dir.c index 64c5d378..8cc3fa84 100644 --- a/Kernel/vfs/dir.c +++ b/Kernel/vfs/dir.c @@ -59,9 +59,9 @@ int VFS_MkNod(const char *Path, Uint Flags) // Check for root if(absPath[0] == '\0') - parent = VFS_ParsePath("/", NULL); + parent = VFS_ParsePath("/", NULL, NULL); else - parent = VFS_ParsePath(absPath, NULL); + parent = VFS_ParsePath(absPath, NULL, NULL); LOG("parent = %p", parent); @@ -127,10 +127,14 @@ int VFS_Symlink(const char *Name, const char *Link) return -1; } + destNode = VFS_ParsePath( _link, &realLink, NULL ); + #if 0 // Get true path and node - destNode = VFS_ParsePath( _link, &realLink ); free(_link); _link = NULL; + #else + realLink = _link; + #endif // Check if destination exists if(!destNode) {