Skip to content

fopen error message issue #34

@tom8907

Description

@tom8907

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions