kopia lustrzana https://github.com/espressif/esp-idf
Don't return a hard coded errno in vfs_fat_access
Why should the return value of vfs_fat_access be hard coded as ENOENT? This hides errors like FR_DISK_ERR of the lower layers.pull/8037/head
rodzic
4143a3f572
commit
ed2a21e1c7
|
@ -865,7 +865,7 @@ static int vfs_fat_access(void* ctx, const char *path, int amode)
|
||||||
// it exists then it is readable and executable
|
// it exists then it is readable and executable
|
||||||
} else {
|
} else {
|
||||||
ret = -1;
|
ret = -1;
|
||||||
errno = ENOENT;
|
errno = fresult_to_errno(res);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Ładowanie…
Reference in New Issue