fix return value of romfs_stat for non-existent files/directories (#466)

This commit is contained in:
Ezekiel Bethel 2020-06-18 10:58:39 +01:00 committed by GitHub
parent bfc6ea48fb
commit b559d93eda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -737,7 +737,7 @@ int romfs_stat(struct _reent *r, const char *path, struct stat *st)
}
r->_errno = ENOENT;
return 1;
return -1;
}
int romfs_chdir(struct _reent *r, const char *path)