Fixed heap troubles (and bugs in VFS_GetTruePath)
[tpg/acess2.git] / Kernel / vfs / dir.c
index 52e9f80..3e004b9 100644 (file)
@@ -3,7 +3,7 @@
  * - Directory Management Functions
  */
 #define DEBUG  0
-#include <common.h>
+#include <acess.h>
 #include <vfs.h>
 #include <vfs_int.h>
 
@@ -61,7 +61,12 @@ int VFS_MkNod(char *Path, Uint Flags)
        else
                parent = VFS_ParsePath(absPath, NULL);
        
-       if(!parent)     return -1;      // Error Check
+       LOG("parent = %p", parent);
+       
+       if(!parent) {
+               LEAVE('i', -1);
+               return -1;      // Error Check
+       }
        
        // Permissions Check
        if( !VFS_CheckACL(parent, VFS_PERM_EXECUTE|VFS_PERM_WRITE) ) {

UCC git Repository :: git.ucc.asn.au