forked from PoliEcho-holding-org/kern
OS now displays info about file when it's name is typed in
This commit is contained in:
+1
-2
@@ -16,8 +16,7 @@ inode_t* getInode(char* path, dirEntry_t* dentries) {
|
||||
|
||||
if (dentries->name[0] == '\0') return NULL;
|
||||
|
||||
inode_t* inode = (inode_t*)BOOT_FIRST_INODE_LOC;
|
||||
while (inode->id != dentries->id) { inode++; }
|
||||
inode_t* inode = (inode_t*)BOOT_FIRST_INODE_LOC + dentries->id;
|
||||
|
||||
return inode;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user