fix return value of romfs_stat for non-existent files/directories

This commit is contained in:
Ezekiel Bethel 2020-06-18 03:42:13 +01:00
parent 044eac2f3d
commit 84417fed49

View File

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