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

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

View File

@ -804,7 +804,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)