Show
Ignore:
Timestamp:
10/04/08 14:15:35 (3 months ago)
Author:
mwhitworth
Message:

Use new softlink code for IcFs, which uses KeFsEntrys. Add extra checks elsewhere.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Whitix/branches/keobject/fs/kfs/dir.c

    r1064 r1081  
    9090                { 
    9191                        /* Follow the softlink. TODO: Must be a simple one? */ 
    92                         char buf[2048]; 
    93                         entry->followLink(buf, 2048); 
     92                        struct KeFsEntry* dest; 
    9493                         
    95                         struct KeFsEntry* entry2; 
     94                        if (entry->followLink(&dest, entry)) 
     95                                return NULL; 
    9696                         
    97                         ListForEachEntry(entry2, &dir->entries, next) 
    98                         { 
    99                                 if ((entry2->type & VFS_ATTR_DIR) && !strnicmp(entry2->name, buf, strlen(buf))) 
    100                                         return &entry2->dir; 
    101                         } 
     97                        if ((dest->type & VFS_ATTR_DIR)) 
     98                                return &dest->dir; 
    10299                } 
    103100