Modules/ISADMA - Removed commented out cli/sti
[tpg/acess2.git] / Kernel / vfs / dir.c
index 43cc0b5..8cc3fa8 100644 (file)
@@ -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);
        
@@ -123,18 +123,22 @@ int VFS_Symlink(const char *Name, const char *Link)
        // Get absolue path name
        _link = VFS_GetAbsPath( Link );
        if(!_link) {
-               Warning("Path '%s' is badly formed", Link);
+               Log_Warning("VFS", "Path '%s' is badly formed", 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) {
-               Warning("File '%s' does not exist, symlink not created", Link);
+               Log_Warning("VFS", "File '%s' does not exist, symlink not created", Link);
                return -1;
        }
        
@@ -143,7 +147,7 @@ int VFS_Symlink(const char *Name, const char *Link)
        
        // Make node
        if( VFS_MkNod(Name, VFS_FFLAG_SYMLINK) != 0 ) {
-               Warning("Unable to create link node '%s'", Name);
+               Log_Warning("VFS", "Unable to create link node '%s'", Name);
                return -2;      // Make link node
        }
        

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