rosco-m68k / newlib-rosco-build

2 stars 0 forks source link

fopen does not return NULL when file not found #2

Open roscopeco opened 6 hours ago

roscopeco commented 6 hours ago

When fopen is called for a file [edit on a filesystem] that doesn't exist, it does not return NULL.

roscopeco commented 6 hours ago

Worth noting that, if called for a non-existent file on a valid filesystem, it returns NULL as expected. E.g.

fopen("/sd/nonexistent.file", "r");

returns NULL, however:

fopen("/nonexistent-filesystem/whatever.file", "r");

does not return NULL.