Skip to content
Snippets Groups Projects
Commit f542d723 authored by Byron Lathi's avatar Byron Lathi
Browse files

fix invalid name bug

bad inode value is -1, not 0
parent 4e5c1a8a
No related branches found
No related tags found
No related merge requests found
......@@ -58,7 +58,7 @@ int32_t _sys_exec(uint8_t* name)
uint32_t parsed_inode = ext2_parse_path_to_inode_num((int8_t*)name);
if (!parsed_inode)
if (parsed_inode == -1)
return -EXEC_NOT_FOUND;
ext2_read_data(parsed_inode, 1, data.data16);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment