-
Notifications
You must be signed in to change notification settings - Fork 76
Description
Error messages in fat16_open
There is a problem with an error message returned from fat16_open. It shows up when trying to run a program from the shell and forgetting to add the file extension. In my case it was meminfo.elf, but I entered meminfo. After the call to fat16_get_directory_entry, the error is EIO, but shouldn't this be a EINVARG instead, since every function called from here is dealing with the file name?
Secondly, when this error filters back up to elf_load which made the initial fopen call, it then changes any error messages that are received to EIO. Granted the error handling isn't really dealt with in detail in the course, but I thought I would at least mention it to you.
Really enjoyed the course, and I am waiting for part 2.
Thanks,
Tom Bonesteel