X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Fvfs%2Fdir.c;h=3e004b91d538439af85232e8f404a03051571356;hb=73e8ed89c011abce9b0ae2c5a3eb232bdbe8660e;hp=52e9f8075724956d47e5386ddacc71d9729c5018;hpb=77ed20ce9d7e25654215980d0f89e63b8dd366f0;p=tpg%2Facess2.git diff --git a/Kernel/vfs/dir.c b/Kernel/vfs/dir.c index 52e9f807..3e004b91 100644 --- a/Kernel/vfs/dir.c +++ b/Kernel/vfs/dir.c @@ -3,7 +3,7 @@ * - Directory Management Functions */ #define DEBUG 0 -#include +#include #include #include @@ -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) ) {