Changeset 1081 for Whitix/branches/keobject/fs/kfs/dir.c
- Timestamp:
- 10/04/08 14:15:35 (3 months ago)
- Files:
-
- 1 modified
-
Whitix/branches/keobject/fs/kfs/dir.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
Whitix/branches/keobject/fs/kfs/dir.c
r1064 r1081 90 90 { 91 91 /* Follow the softlink. TODO: Must be a simple one? */ 92 char buf[2048]; 93 entry->followLink(buf, 2048); 92 struct KeFsEntry* dest; 94 93 95 struct KeFsEntry* entry2; 94 if (entry->followLink(&dest, entry)) 95 return NULL; 96 96 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; 102 99 } 103 100